in reply to Re^2: undef==defined sometimes? (body question)
in thread undef==defined sometimes?
Why don't you just return nothing at all on error, and get over the non-problem problem?
There was really no point in writing code here in hindsight. So ...
Added code for the uninitiated ...
use Data::Dumper; my @p = give(); my $p = give(); print Dumper( \@p , $p ); sub give { # Case of error. return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: undef==defined sometimes? (body question)
by perl-diddler (Chaplain) on May 03, 2008 at 11:14 UTC | |
by ikegami (Patriarch) on May 03, 2008 at 11:29 UTC |