>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?
This is fairly recent. I'm a little surprised that 5.004 does it,
but I don't remember exactly when it was implemented.
>
>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).
You probably have an older version of Perl on the Windows system.
>
>I haven't had any luck finding documentation about this peculiarity, so any
>insight would be appreciated.
>
>Thanks,
>David
--
--
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693
[EMAIL PROTECTED]