Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
someFunction() or die "$!";
This, however, doesn't work. An error is still printed to stdout and the program colapses on itself. I've also tried this:someFunction() or return(1);
with no luck either.my $value; someFunction() or $value = 1; return($value) if $value;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: function or something
by philcrow (Priest) on Jul 20, 2006 at 15:35 UTC | |
| |
|
Re: function or something
by bobf (Monsignor) on Jul 20, 2006 at 15:43 UTC | |
|
Re: function or something
by ysth (Canon) on Jul 20, 2006 at 16:25 UTC | |
|
Re: function or something
by imp (Priest) on Jul 20, 2006 at 16:47 UTC | |
|
Re: function or something
by mrbbking (Hermit) on Jul 20, 2006 at 16:03 UTC | |
|
Re: function or something
by shmem (Chancellor) on Jul 20, 2006 at 16:50 UTC | |
|
Re: function or something
by sgifford (Prior) on Jul 21, 2006 at 03:02 UTC |