note TGI <p>Interesting technique. Are there any advantages to <c>$foo[@foo] = 'var'</c> over <c>push @foo, 'var'</c></p>? <p>Anyone foolish enough to change the starting index of their arrays with "$[" will find that <c>$foo[@foo] = 'var'</c> breaks. But then they deserve what they get. However, push and map will function even in the dire weirdness imposed by defining arrays to start at index 23. <p>For completeness sake, here's the map implementation, even though [Grandfather|you] know perfectly well how to do it. <c> my @fileHandles = map { open my $fh, '<', $_ or die "Can't open $filename $!"; $fh; } @fileNames; </c> <p><b>Update:</b> fixed dumb typos, thanks to GrandFather.</p> <!-- Node text goes above. Div tags should contain sig only --> <div class="pmsig"><div class="pmsig-25825"> <P><BR>TGI says <B>moo</B></P> </div></div> 761028 761419