throop has asked for the wisdom of the Perl Monks concerning the following question:
Brethren,
I'm refactoring legacy Perl code that uses prototypes. The standard wisdom on prototypes is Don't.
All the prototypes in this code are for one or two scalar args; e.g.
In other words, the only char inside the prototype parens is a '$'.sub files_identical($$) { my ($file1, $file2) = @_;... sub inspection_current($) { my $file = shift; ...
In that case, is there anything that might break if I removed the prototypes?
throop
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Refactoring prototypes - what am I going to break
by moritz (Cardinal) on Oct 30, 2007 at 16:01 UTC | |
Re: Refactoring prototypes - what am I going to break (context)
by tye (Sage) on Oct 30, 2007 at 16:02 UTC | |
Re: Refactoring prototypes - what am I going to break
by Sidhekin (Priest) on Oct 30, 2007 at 16:06 UTC | |
Re: Refactoring prototypes - what am I going to break
by halley (Prior) on Oct 30, 2007 at 19:45 UTC | |
by throop (Chaplain) on Oct 30, 2007 at 22:52 UTC | |
by halley (Prior) on Oct 31, 2007 at 13:09 UTC | |
by sfink (Deacon) on Nov 06, 2007 at 17:27 UTC | |
by dragonchild (Archbishop) on Nov 06, 2007 at 17:39 UTC | |
Re: Refactoring prototypes - what am I going to break
by cdarke (Prior) on Oct 30, 2007 at 22:48 UTC |
Back to
Seekers of Perl Wisdom