Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to get out of subroutine without returning anything

by jacaril (Beadle)
on Mar 30, 2010 at 16:57 UTC ( #831901=note: print w/ replies, xml ) Need Help??


in reply to how to get out of subroutine without returning anything

Do you want o do anything with the data if the description is empty? If not the fast approach could be something like:

sub _get_user_scenario { my ($self, $schema, $user_scenario) = @_; return undef if $user_scenario->{description} eq ""; ...


Comment on Re: how to get out of subroutine without returning anything
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831901]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-08-27 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (330 votes), past polls