Hello
  Sorry if it has already been listed in a perl document, however I cannot discover it,

My curiosity is that:

	Is there the "iterator variable" for "for or foreach" loop ?
	At this present, when I need access to get current index of an array when looping with for, I do this

	my $counter=0;
	for (@array) {
		#do something

		print $another_array[$counter];
		++$counter;
	}

you see? It is not elegant.. has perl this iterator variable ?


_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to