develooper Front page | perl.beginners | Postings from April 2008

Re: removing duplicates

Thread Previous | Thread Next
From:
sivasakthi
Date:
April 29, 2008 03:35
Subject:
Re: removing duplicates
On Tue, 2008-02-05 at 14:40 -0500, obdulio santana wrote:

> May be this helps
> 
> perl -lne "print if  ++$D{$_} == 1" address.txt
> 
> regards
> 
> 
> 

I have tried the above command , but it shows the following error,

Can't modify single ref constructor in preincrement (++) at -e line 1,
near "} =="
Execution of -e aborted due to compilation errors.






Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About