suaveant has asked for the wisdom of the Perl Monks concerning the following question:
and that would print the message to standard out and return.if($foo) { print "1\nError was $foo\n"; return; } #would become preturn "1\nError was $foo\n" if $foo;
I have thought about having take_call print the return value if any... but that would be... difficult at this point.
I am guessing there probably is no way to do this, or if there is, it is a nasty hack, but you never know unless you ask :)
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print and return...
by tachyon (Chancellor) on Sep 27, 2001 at 21:16 UTC | |
|
(bbfu) (another way) Re: print and return...
by bbfu (Curate) on Sep 27, 2001 at 21:26 UTC | |
by tachyon (Chancellor) on Sep 27, 2001 at 22:00 UTC | |
by bbfu (Curate) on Sep 27, 2001 at 22:20 UTC | |
|
Re: print and return...
by dlc (Acolyte) on Sep 27, 2001 at 21:28 UTC | |
by ChemBoy (Priest) on Sep 28, 2001 at 09:23 UTC | |
|
Re: print and return...
by Sidhekin (Priest) on Sep 27, 2001 at 22:34 UTC |