Robert Monical wrote: > > At 01:12 AM 1/16/2003 -0800, you wrote: > > > >An array in scalar context return the number of elements in the array so > >you probably want: > > > > for ( my $x = 0; $x < @amen; $x++ ) { > > > >Or the more Perlish way: > > > > for my $x ( 0 .. $#amen ) { > Thanks, both constructs worked perfectly. > My instinct was to try > >for my $x ( 0 .. $#amen -1) { > for the second construct. As seems to be > typical with Perl, my instinct was wrong
Well, you _could_ do it this way: for my $x ( 0 .. @amen - 1 ) { :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]