Howdy list,

I'm trying to figure this one out and am at the brick wall with trying /docs


in a function I'd like to replace this kind of code:

 if($whatever) {
    ## do some stuff

   return @stuff;
 }

 # we got this far so keep on moving

with


do_some_stuff_and_return( @stuff ) if $whatever;

# we got this far so keep on moving

The trick is I can't seem to goto() return in do_some_stuff_and_return(), I'm sure since its so deep down...

Anywho, any ideas would be awesome!


TIA


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to