laziness, impatience, and hubris | |
PerlMonks |
Re: User-Defined Sub, Passing a Single Argument?by duelafn (Parson) |
on Oct 15, 2014 at 17:33 UTC ( [id://1103940]=note: print w/replies, xml ) | Need Help?? |
Method 2 should have parens: my ($arg) = @_; As for which style to use, it really doesn't matter, it is all a matter of personal taste and I have used all three (though typically one of the first two). Update: Better phrasing, thanks kennethk Good Day,
In Section
Seekers of Perl Wisdom
|
|