in reply to Re: Weird Perl Rule I'm Probably Not Following
in thread Weird Perl Rule I'm Probably Not Following

hmm.. okay what was happening before? which of the variables was the my affecting? just the first in the string of variables??
  • Comment on Re^2: Weird Perl Rule I'm Probably Not Following

Replies are listed 'Best First'.
Re^3: Weird Perl Rule I'm Probably Not Following
by Roy Johnson (Monsignor) on Oct 14, 2005 at 17:21 UTC
    Yes. my takes a variable or a parenthesized list of variables. You would eventually have located that bug if you had at the top of your program
    use strict; use warnings;
    strict would have complained about variables not being declared, and warnings would have warned you about using things like $s = @var[1].

    Caution: Contents may have been coded under pressure.