Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Useless use of string in return statement

by tybalt89 (Monsignor)
on Apr 12, 2021 at 23:29 UTC ( [id://11131159]=note: print w/replies, xml ) Need Help??


in reply to Useless use of string in return statement

Because

return $result{'message'} or "$result{'api-key'}:$result{'session'}";   # <- line 229

is really

(return $result{'message'}) or "$result{'api-key'}:$result{'session'}";   # <- line 229

try || instead of or

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2026-03-08 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.