Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Why/how are these different?

by AnomalousMonk (Monsignor)
on Jan 31, 2013 at 08:51 UTC ( #1016258=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Why/how are these different?
in thread Why/how are these different?

[Use of warnings] often gives an insight into what Perl understands your code to be. (Athanasius)

perl-diddler: Another path to insight is to have Perl deparse your code for you (see B::Deparse and O):

>perl -wMstrict -MO=Deparse,-p -le "print qq{\$_ '$_'} for $_ = 3; $_-- >0; " Useless use of numeric gt (>) in void context at -e line 1. BEGIN { $^W = 1; } BEGIN { $/ = "\n"; $\ = "\n"; } use strict 'refs'; print("\$_ '${_}'") foreach (($_ = 3)); (($_--) > 0); -e syntax OK


Comment on Re^3: Why/how are these different?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-08-21 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls