Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, Its my idea.... $i=0;$x="klops"; @a=qw(apfel klops klops börne joghurt klops nüß); @new = (); for ($i=0;$i<=$#a;$i++) { if (grep/$x/,$a[$i]) { push (@new,$a[$i]); delete ($a[$i]); } } print @a; print @new; Thanx In reply to Re: another elegance contest
by l.frankline
|
|