in reply to Script/module formatting gotcha
As jettero pointed out, it's an rvalue assignment - and although the code in the example that you cite isn't doing anything worthwhile, the mechanism itself is a perfectly valid and useful one. Without it, you couldn't do things like
die "Syntax: [...]\n" unless my $fname = shift;
and so on. I think that the right perspective here is that the tools are available and usable, but the decision about whether something is useful or not is up to the human. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Script/module formatting gotcha
by mjscott2702 (Pilgrim) on Oct 06, 2010 at 15:27 UTC |