Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: split, Use of uninitialized value

by thelenm (Vicar)
on Jan 07, 2004 at 03:44 UTC ( #319335=note: print w/ replies, xml ) Need Help??


in reply to Re: split, Use of uninitialized value
in thread split, Use of uninitialized value

Autovivification doesn't happen in this case, e.g.

my $foo = [qw(a b c)]; if (defined $foo->[4]) { print "this will not print\n"; } print join('|', @$foo), "\n";

... prints "a|b|c" instead of "a|b|c||" as you would expect if autovivification had occurred.

-- Mike

--
XML::Simpler does not require XML::Parser or a SAX parser. It does require File::Slurp.
-- grantm, perldoc XML::Simpler


Comment on Re: Re: split, Use of uninitialized value
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319335]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-07-04 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls