Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-03-28 11:43 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (625 votes), past polls