Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Dereferencing undef as an array: Bug or WAD?

by ChemBoy (Priest)
on Jun 04, 2008 at 15:06 UTC ( [id://690160]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Dereferencing undef as an array: Bug or WAD?
in thread Dereferencing undef as an array: Bug or WAD?

It does persist—you've autovivified $r as a reference to an array, but that array is still empty:

% perl -Mstrict -wle 'my $r = undef; map ++$_, @$r; print $r;' ARRAY(0x10116180)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-18 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found