
thebitch
User
Oct 1, 2002, 10:31 AM
Post #2 of 2
(1251 views)
|
|
Re: [Strider] Fun with regular expressions
[In reply to]
|
Can't Post
|
|
A few style notes, 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__'; instead of
my $package = shift(); my $propFile = shift(); my $name = shift() || '__default__';
|