in reply to Gratuitous use of Perl Prototypes
My first thought any time I see code with prototypes is that the person who wrote it doesn't know Perl very well. There's no reason to use them except to try and do something tricky like your PUSH() example, and I think that's a bad idea because it has hidden behaviors and doesn't work the way other subs do. Better to treat all your subs consistently and use references explicitly when you want them.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Gratuitous use of Perl Prototypes
by leriksen (Curate) on Nov 09, 2004 at 00:56 UTC |
In Section
Meditations