Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: perl's sleep function

by virtualsue (Vicar)
on Nov 08, 2005 at 10:22 UTC ( #506678=note: print w/ replies, xml ) Need Help??


in reply to perl's sleep function

As tirwhan says, 86_400 is the same as 86400. Perl allows '_' in numbers, and it can appear anywhere in the number. Perl strips out the '_' characters in a number before using it. It is purely cosmetic for ease of reading.

perl -e 'print 123_0_33_876,"\n"'
Copy and paste the above line for an instant demonstration. (If you're on Windows, you may need to change the quoting slightly)


Comment on Re: perl's sleep function
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-07-03 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls