Paul Johnson said: > On Wed, Oct 06, 2004 at 01:42:43PM +0100, Gavin Henry wrote: > >> I want to read in a file and print repeated lines like: >> >> yum >> yum >> >> or >> >> xorg-x11 >> xorg-x11 >> >> >> What's the best way to do this? A RE or a module from CPAN? > > uniq -d > > Or, if you aren't on a system where that is available, use the ppt > version: http://ppt.perl.org/commands/uniq/index.html
Quicker and easier I suppose, thanks. > > -- > Paul Johnson - [EMAIL PROTECTED] > http://www.pjcj.net > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- Just getting into the best language ever... Fancy a [EMAIL PROTECTED] Just ask!!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>