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

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.