in reply to Using scalar values as conditionals
In a real program, the $name gt 'fred' could be a long, expensive expression, whose value is needed more than once. Or the comparison between $name and 'fred' and if statement has some code between it, code that may, or may not modify $name.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Thanks, Re: Using scalar values as conditionals
by amarceluk (Beadle) on May 28, 2002 at 17:02 UTC |