P is for Practical | |
PerlMonks |
Re: my and local??by toadi (Chaplain) |
on Jul 28, 2000 at 13:27 UTC ( [id://24815]=note: print w/replies, xml ) | Need Help?? |
</CODE>
WARNING: In general, you should be using `my' instead of
`local', because it's faster and safer. Exceptions to
this include the global punctuation variables, filehandles
and formats, and direct manipulation of the Perl symbol
table itself. Format variables often use `local' though,
as do other variables whose current value must be visible
to called subroutines.
</CODE> This is what is written in man perlsub. I think this is kind of straightforward? -- My opinions may have changed, but not the fact that I am right
In Section
Seekers of Perl Wisdom
|
|