... the issue is the way doublequotes are interpolated.
No, per tye above, the problem is with scoping within a statement:
c:\@Work\Perl\monks>perl -wMstrict -le "my %foo = qw(do done eggs ham was were); ;; my @v; (@v = keys %foo) == 1 or warn qq{Got more than one: @v}; print qq{V:@v}; " Got more than one: eggs was do at -e line 1. V:eggs was do
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Declaring with my, assigning, and testing in same line
by AnomalousMonk
in thread Declaring with my, assigning, and testing in same line
by mordibity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |