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

Re: Peculiar incident: printing a variable changes its type

by KurtZ (Pilgrim)
on Nov 13, 2013 at 14:07 UTC ( #1062387=note: print w/replies, xml ) Need Help??


in reply to Peculiar incident: printing a variable changes its type

print "$body->{timeout}\n"; #<-----suspect line
avoid stringification!
print $body->{timeout}, "\n"; # better
HTH!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062387]
help
Chatterbox?
and a soft breeze sighs...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-04-24 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?