Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^4: Autovivification of scalars in sub calls

by truedfx (Monk)
on Dec 09, 2005 at 11:51 UTC ( #515515=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    sub foo {}
    foo(scalar substr "hello", 10, 1); # but you need something like this
    print "This only gets printed if the last line didn't cause a fatal er
  2. or download this
    perl -e '+$a = "Hello, world!\n"; print $a'
    Hello, world!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-03 03:54 GMT
Find Nodes?
    Voting Booth?

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

    Results (48 votes), past polls