Hi all,
I frequently use 'my' with for loops in the following way:
for my $name( qw{ David Steven Eric } ) {
... # do something with $name
}
Was 'my' not meant to be used like this?
The reason I ask is that when used with MacPerl, everything behaves as
expected. However, whenever I try to run a script containing this syntax on
Windows, I get some odd error saying that I've somehow misused the 'my'
function. (Excuse me for not duplicating the error here; I can't recall the
specific error and I'm away from my Windows system).
I haven't had any luck finding documentation about this peculiarity, so any
insight would be appreciated.
Thanks,
David