Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Detecting 'our $foo => 1' mistake? (scalar comma evaluating to 1)

by haukex (Archbishop)
on Jan 21, 2017 at 11:21 UTC ( [id://1180081]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Detecting 'our $foo => 1' mistake? (scalar comma evaluating to 1)
in thread Detecting 'our $foo => 1' mistake?

Hi Rolf,

Yes, I think you're right:

$ perl -MO=Deparse,-p -e 'our $foo => 1;' (our($foo), '???');

Regards,
-- Hauke D

Replies are listed 'Best First'.
Re^4: Detecting 'our $foo => 1' mistake? (scalar comma evaluating to 1)
by LanX (Saint) on Jan 21, 2017 at 18:28 UTC
    Yeah and I checked, it's a pure runtime error.

    I.e. perl -c won't catch.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-03-28 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found