in reply to Re^4: Why did @$ variable bite me in the ass?
in thread Why did @$ variable bite me in the ass?

Watt no $5 .. $9 ? :)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

  • Comment on Re^5: Why did @$ variable bite me in the ass?

Replies are listed 'Best First'.
Re^6: Why did @$ variable bite me in the ass?
by QM (Parson) on Mar 02, 2015 at 09:05 UTC
    Watt no $5 .. $9 ? :)

    Yes, I noticed that too. ;)

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Re^6: Why did @$ variable bite me in the ass?
by hdb (Monsignor) on Mar 02, 2015 at 09:31 UTC
    use strict; use warnings; $5[$_] = 1 for 0..5; print "@5\n";
      Ehm ... does this demonstrate any diff between @1 and @5 ?

      The results are the same for me.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)

      PS: Je suis Charlie!

        Exactly! But there is no *main::5 on QM's list, as you already pointed out.