Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: What is true and false in Perl?

by AnomalousMonk (Canon)
on Apr 15, 2012 at 02:42 UTC ( #965119=note: print w/ replies, xml ) Need Help??

in reply to Re^4: What is true and false in Perl?
in thread What is true and false in Perl?

Not quite sure what you are saying, but neither is behavior different when run as a 'script' versus on the command line via -e, nor is the arithmetic operation 'ignored'.

>cat use warnings; use strict; print 42 * '0 but true', "\n"; print 42 * '0 but zonk', "\n"; >perl 0 Argument "0 but zonk" isn't numeric in multiplication (*) at +line 5. 0

Update: Verfied on ActiveState 5.8.9 and Strawberries 5.10.1, 5.12.3 and 5.14.2.

Comment on Re^5: What is true and false in Perl?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-11-28 21:27 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (745 votes), past polls