jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
If $val1 or $val2 is undef $result is undef too. Is there a way to change this behaviour or maybe a smart solution ?($result) = sort ($val1, $val2) ; print $result ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort and undef
by Hena (Friar) on Dec 12, 2005 at 13:42 UTC | |
|
Re: sort and undef
by Fletch (Bishop) on Dec 12, 2005 at 13:38 UTC | |
|
Re: sort and undef
by gjb (Vicar) on Dec 12, 2005 at 13:44 UTC | |
|
Re: sort and undef
by jeanluca (Deacon) on Dec 12, 2005 at 14:10 UTC |