Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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 ""; ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831901]
[johngg]: Yes, must be nearly 30 years ago.
[hippo]: Loudest gig I can recall was Wolfsbane at the Astoria in the early 90s. Head rang for about 3 days afterwards. They were top, though.
[johngg]: My ears are still ringing!
Discipulus was outside The Clash concert in 1985..
[marto]: Wolfsbane , now I'm having flashbacks

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2017-03-24 12:07 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.