Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using strict and functions

by strat (Canon)
on Jan 17, 2002 at 22:04 UTC ( #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"


Comment on Re: using strict and functions
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-11-22 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (121 votes), past polls