slok has asked for the wisdom of the Perl Monks concerning the following question:
questions will be wrt the linemy $count=10; if(@ARGV && $ARGV[0] =~ /'^-') { ($count) = $ARGV[0] =~ /^(\d+)/; shift(@ARGV); }
===($count) = $ARGV[0] =~ /^(\d+)/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why the need to match when assigning?
by davorg (Chancellor) on Jun 04, 2001 at 12:58 UTC | |
|
Re: why the need to match when assigning?
by iakobski (Pilgrim) on Jun 04, 2001 at 13:16 UTC | |
|
Re: why the need to match when assigning?
by swiftone (Curate) on Jun 04, 2001 at 16:52 UTC | |
by davorg (Chancellor) on Jun 04, 2001 at 17:05 UTC | |
by converter (Priest) on Jun 04, 2001 at 17:33 UTC | |
by swiftone (Curate) on Jun 04, 2001 at 17:08 UTC |