
mhx
Enthusiast
/ Moderator
Aug 15, 2001, 9:34 PM
Post #2 of 3
(186 views)
|
|
Re: What is different between the two expressions?
[In reply to]
|
Can't Post
|
|
As always, perl's -w switch will tell you what's "wrong" with this:
mholland@bmdke3 $ perl -we 'print 100*(1+2**3)' 900 mholland@bmdke3 $ perl -we 'print (1+2**3)*100' print (...) interpreted as function at -e line 1. Useless use of integer multiplication (*) in void context at -e line 1. 9 So, never develop any code without -w. Hope this helps. -- Marcus
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= ($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"
|