Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: using strict and functions

by strat (Canon)
on Jan 17, 2002 at 22:04 UTC ( [id://139570]=note: print w/replies, xml ) Need Help??


in reply to using strict and functions

There are some variables that can't be used with my, e.g. $" or the like. In this case, you have to use local.
sub MyFunc { local $" = shift; my @list = @_; print "@list\n"; } # MyFunc
But always try to use my before using local.

Best regards,
perl -e "print a|r,p|d=>b|p=>chr 3**2 .7=>t and t"

Log In?
Username:
Password:

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

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

    No recent polls found