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

Re: Where did all the time go?

by choroba (Cardinal)
on Aug 01, 2019 at 20:20 UTC ( [id://11103728]=note: print w/replies, xml ) Need Help??


in reply to Where did all the time go?

Precedence issue. Use B::Deparse with -p to see how Perl interprets the code:
$ perl -MO=Deparse,-p -e '($s,$m,$h,$md,$mo,$y,$w,$g,$i)=localtime;pri +nt $y+1900 . "." . ($mo+1) . ".$md." . ($h-5) . "$m\n";' (($s, $m, $h, $md, $mo, $y, $w, $g, $i) = (localtime)); print((((((($y + 1900) . '.') . ($mo + 1)) . ".$md.") . ($h - 5)) . "$ +m\n")); $ perl -MO=Deparse,-p -e '($s,$m,$h,$md,$mo,$y,$w,$g,$i)=localtime;pri +nt $y+1900 . "." . $mo+1 . ".$md." . ($h-5) . "$m\n";' (($s, $m, $h, $md, $mo, $y, $w, $g, $i) = (localtime)); print(((((((($y + 1900) . '.') . $mo) + 1) . ".$md.") . ($h - 5)) . "$ +m\n"));
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Where did all the time go?
by ExReg (Priest) on Aug 01, 2019 at 20:29 UTC

    I knew it had to be precedence, but was unsure what it really looked like. The B::Deparse showed it beautifully. I will have to remember that one.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found