Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^6: Global symbol requires explicit package name

by ColonelPanic (Friar)
on Nov 29, 2012 at 06:28 UTC ( [id://1006166]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Global symbol requires explicit package name
in thread Global symbol requires explicit package name

The first example doesn't provide equivalent functionality, however. When an array slice is passed normally, modifying @_ will modify the original array. But this makes an anonymous copy of the array slice, which is discarded after the function call.


When's the last time you used duct tape on a duct? --Larry Wall

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-18 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found