Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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
    +ror\n";
    
  2. or download this
    perl -e '+$a = "Hello, world!\n"; print $a'
    Hello, world!
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-10-22 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (113 votes), past polls