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

Re: Question about defined loop

by mje (Curate)
on Mar 11, 2010 at 17:04 UTC ( [id://828088]=note: print w/replies, xml ) Need Help??


in reply to Question about defined loop

return defined($not_exposed_reason) || 'No exposed reason';

Replies are listed 'Best First'.
Re^2: Question about defined loop
by JavaFan (Canon) on Mar 11, 2010 at 17:06 UTC
    That returns 1 if $not_exposed_reason is defined. I doubt that's what the OP wants.

      Oops, you are of course right.

      return $not_exposed_reason // 'No exposed reason';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2025-11-15 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.