in reply to Help me not use for($i=0;$i=$#array;$i++)...Please!

If you don't care about what you throw away:
@array = grep { $_ != 5 } @array;
If you do care:
my @thrownaway; @array = grep { if ( $_ == 5 ) { push @thrownaway, $_; 0 } else 1; } @ +array;

Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain