in reply to Deleting Duplicates in an array
you might also want to doopen (OWO, "+>$owo") or die $!; #in read-write mode seems to clear it #this line made it work fine for me... (in linux anyway) open (OWO, $owo) or die $!;
to get rid of trailing newlines... up to you...chomp(@ary = <OWO>);
if you do care about order from the file, you the suggestions others have posted.
- Ant
|
|---|