On Nov 1, 10:09 am, [EMAIL PROTECTED] (Ernond Paul) wrote:
> Hi,
>
> I would like to suppress empty element when I output mu hash with
> XMLout
> but the option "suppressempty" only seeme to work with XMLin :
> "suppressempty => 1 | '' | undef (in) : This option controls what
> XMLin() should do [...]"
>
> So, I've tried to undef element before call XMLOut :
>         undef($xx->{"element"}[0]{"sub"}[0]);
>         delete($xx->{"element"}[0]{"sub"}[0]);
>         $xx->{"element"}[0]{"sub"}[0] = undef;

None of those remove the element in question.
perldoc -f delete
perldoc -f undef

You want splice() instead, since you're dealing with arrays on the
final level.
perldoc -f splice

Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to