Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: File Manipulation - Need Advise!by Codon (Friar) |
on Jan 03, 2008 at 18:57 UTC ( [id://660296]=note: print w/replies, xml ) | Need Help?? |
You didn't mention this, but if order matters in some way, you would might want two data structures, one to unique the output (a hash) and one to maintain ordering (an array). I don't know if you have seen this with the previous examples, but the header line could get mixed into the file somewhere (randomly, thanks to the hashing algorithm) unless handled separately.
Alternatively, I provide this quick example:
Ivan Heffner Sr. Software Engineer WhitePages.com, Inc.
In Section
Seekers of Perl Wisdom
|
|