good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I disagree. Suggesting someone to use $a (or $b) special auto-declared (package global) variables for the purpose of avoiding the need of variable declaration with my is really poor practice.
The: solution suggested earlier by LanX is far better. There are a few cases where $a and $b package global variables are really useful (especially for a sort subroutine, but not only that, some other functional programming techniques can also make good use of them), please don't use them when simply declaring the variable can make what you want. In reply to Re^4: chr() function
by Laurent_R
|
|