Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 meditating upon the Monastery: (8)
As of 2014-08-28 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls