Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Higher resolution $^T?

by Tux (Monsignor)
on Jun 23, 2014 at 05:47 UTC ( #1090885=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Higher resolution $^T?
in thread Higher resolution $^T?

But now you also kill the magic of -M and friends:

$ perl -wE'say $^T;say -M ".";sleep 1;say -M ".";$^T=time;say -M ".";u +ndef*^T;$^T=1400000000.123;say -M "."' 1403502321 0.450798611111111111 0.450798611111111111 0.450810185185185185 0.450810185185185185

Note that the last -M uses what was last stored in $^T before it was undef'd and not the value you put in it.


Enjoy, Have FUN! H.Merijn


Comment on Re^3: Higher resolution $^T?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-09-19 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls