P is for Practical | |
PerlMonks |
Use B::Deparse to see whyby htoug (Deacon) |
on Sep 23, 2004 at 14:05 UTC ( [id://393203]=note: print w/replies, xml ) | Need Help?? |
If you try perl -MO=Deparse you will see that the perl compiler interprets the print statement as you surmised:
Why there is a difference between the interpretation of $ followed by whitespace and @ followed by whitespace probably lies in the fact that @-interpolation is a quite new invention (5.6 AFAICR). -MO=Deparse is very handy for finding out why a coinstruct does what it does (and for deobfuscation).
In Section
Seekers of Perl Wisdom
|
|