On Thursday, April 11, 2002, at 05:09 , Jeff 'japhy' Pinyan wrote:

>> my @array = (1 .. 100);
>> my $counter = 0;
>>
>> for (@array) {
>>   print "index -> $counter   element -> $_\n";
>>   $counter++;
>> }
>
> The other approach is to use a C-style for-loop.

Is there any given advantage of one over the other in
terms of performance and/or maintainability?

the two stalking horses of my life.

and these over

        print "index -> " . $counter++ . " element -> $_\n" for (@array);


ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to