in reply to shift or die unless
or($arg = shift || die "takes one arg") unless -M $file >7;
It would, IMO, be much better written as two separate statements.$arg = shift || (die "takes one arg" unless -M $file >7;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: shift or die unless
by ikegami (Patriarch) on Dec 03, 2008 at 18:38 UTC | |
by dsheroh (Monsignor) on Dec 03, 2008 at 22:30 UTC | |
by ikegami (Patriarch) on Dec 04, 2008 at 12:16 UTC | |
by eric256 (Parson) on Dec 04, 2008 at 15:28 UTC | |
by ikegami (Patriarch) on Jan 09, 2009 at 17:10 UTC |