Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-11-25 09:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (672 votes), past polls