in reply to Variable scoping and globs and reference passing to subroutines!!!
But the reason that I am responding is to head off a bad habit. Lose the prototypes. They don't do what you think and you almost definitely don't want what they actually do. Prototypes in Perl do argument coercion. They don't prevent any potential mistakes or warn you of anything wrong. They just provide the possibility of minor convenience at the risk of causing serious confusion and introducing unexpected bugs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variable scoping and globs and reference passing to subroutines!!!
by MarkovChain (Sexton) on Dec 19, 2008 at 14:37 UTC | |
by tilly (Archbishop) on Dec 19, 2008 at 16:02 UTC |