Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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]
[Discipulus]: Eternal City?
[Corion]: Hmm - my Italian isn't that great - I assume this is more an accident and less an art project, right?
[Discipulus]: yes we are falling down

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-02-28 10:32 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.