> eg. To get all the unique elements of an array in linux I use a
> simple one liner
>
> @unique = grep{!/$seen{$_}++/} @all_elements;
>
The above expression did not work for me,
I could not even found out how this should work. So I created a small file
with...
@all_elements = qw(hello all elements hello all this that this) ;
@unique = grep{!/$seen{$_}++/} @all_elements;
print @unique ;
in cygwin, error was Quantifier follows nothing before HERE mark in regex
m/+ << HERE +/ at try2.pl line 2.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]