in reply to Re: default values
in thread default values
Would there be a natty way fo using the $_ (or whatever returns the last variable used?)
Shot in the dark:
As you can probably see I dont have a full grasp of this concept :-)$val = ($_ eq "") ? $default_val : $_;
While we are on this topic.. do you know if there is any speed (trivial tho it may be) or logical difference in checking for a value being equal or not equal first?
$a = ($b ne $c) ? $d : $e; $a = ($b eq $c) ? $e : $d;
___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: default values
by Limbic~Region (Chancellor) on Sep 16, 2003 at 16:18 UTC | |
by wolis (Scribe) on Sep 18, 2003 at 03:30 UTC |