in reply to Re: Variable assignment error checking
in thread Variable assignment error checking
davido has the answer. That's the way to do it. If func returns 0 or undef, $var will be assigned to $var, therefore keeping its original value. I use this technique all the time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Variable assignment error checking
by Anonymous Monk on Dec 15, 2013 at 06:39 UTC | |
by davido (Cardinal) on Dec 16, 2013 at 15:53 UTC | |
by Anonymous Monk on Dec 17, 2013 at 07:26 UTC | |
by Anonymous Monk on Dec 15, 2013 at 09:06 UTC | |
by Anonymous Monk on Dec 15, 2013 at 10:13 UTC | |
by hdb (Monsignor) on Dec 15, 2013 at 10:20 UTC | |
by Anonymous Monk on Dec 15, 2013 at 10:36 UTC | |
|