in reply to Re: Nested loops
in thread Nested loops

Ahh, that's very kind, nuance. I keep forgetting to put "my" at the front of these things.

Replies are listed 'Best First'.
Re^3: Nested loops
by stevieb (Canon) on Sep 13, 2015 at 14:05 UTC

    As nuance stated, $a and $b are special variables to perl (used in things like sort. They don't need to be declared with my because of this). It's highly advisable that you don't use these special variables except for where they are normally expected.

Re^3: Nested loops
by AnomalousMonk (Archbishop) on Sep 13, 2015 at 15:22 UTC

    $a and  $b are just the beginning of Perl's pre-defined special variables. Please see perlvar (or perldoc perlvar on your local machine) for the whole story.


    Give a man a fish:  <%-{-{-{-<