Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Autovivification of scalars in sub calls

by friedo (Prior)
on Dec 08, 2005 at 01:38 UTC ( [id://515102]=note: print w/replies, xml ) Need Help??


in reply to Re: Autovivification of scalars in sub calls
in thread Autovivification of scalars in sub calls

True, although an example with print demonstrates the behavior to which tlm was referring:

perl -Mstrict -le 'my $x; print @$x' Can't use an undefined value as an ARRAY reference at -e line 1. perl -Mstrict -le 'my $x; sub { }->( @$x ); print @$x' (No error generated)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found