Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Useless use of string in return statement

by tybalt89 (Prior)
on Apr 12, 2021 at 23:29 UTC ( #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
Node Status?
node history
Node Type: note [id://11131159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-05-15 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?