Oct 1, 2002, 10:31 AM
Post #2 of 2
A few style notes,
Re: [Strider] Fun with regular expressions
[In reply to]
if you're going to bother putting () on a 'shift'
call, which is a perl built-in, you might as well put in @_,
so it becomes shift(@_).
it's 'shift' or shift(@_), mmkay ;D
Also, since you have more than 2, it might make more sense to
my( $package, $propFile, $name ) = @_;
$name ||= '__default__';
my $package = shift();
my $propFile = shift();
my $name = shift() || '__default__';