Does anyone know what version of perl it was when you can use my within
a for or foreach statement such as:

foreach my $var (@array) {}

I know with older per version this will error and it must be written as:

my $var;
foreach $var (@array) {}

Also, when did they introduce the ability to write a foreach such as:

print foreach (@array);

I know on older versions you have to write is as:

foreach (@array) { print; }

Thanks,

Troy

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to