in reply to Re^3: removing reversed elements
in thread removing reversed elements

I am sorry..i am getting following error message:

Can't locate Data/Dump.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 .) at test.pl line 1. BEGIN failed--compilation aborted at test.pl line 1.

The code is very high level to people like me..if you would not mind, could you comment it please..

Replies are listed 'Best First'.
Re^5: removing reversed elements
by Anonymous Monk on Feb 02, 2011 at 12:07 UTC

    Data::Dump is just to dump out the array, so you could see, that the function does what you want. You could omit using it and pp-line too.

    AFIU grep here triggers counters, so it can throw away pairs already seen.