> Masters!?
> 
> Is there a neater way of doing this:?
> 
> my $sheet;
> foreach (1, 2, 4) {
>       $sheet = $_;
>       print "\$sheet = $sheet\n";
> }
> 
> something along the lines of:
> 
> foreach (my $sheet = (1, 2, 4)) {
>       print "\$sheet = $sheet\n";
> }
> 
> But this doesn't work as intended.
> 
> Thanks.
> 
> R.

Guys,

foreach my $sheet (1, 2, 4) {
        print "\$sheet = $sheet\n";
}

Is exactly what I was trying to do.

Thanks to all who replied, there's too many to list! :-D

R
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to