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

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

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!