in reply to how to delete without resulting in undef

However if you WANT to use 'delete', you allways can do it like this:
#!/usr/bin/perl -w use strict; # updated: Assuming you use strict and warnings :) my @a = (1..10); undef $a[3]; foreach (@a) { print $_ if defined($_); }
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.