nwkcmk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm a amateur in Perl. I saw from web that following code is used remove duplicates in a array
Looks like !$saw{$_}++ is too much for me to digest. Hopefully someone can explain to me what this expression means.undef %saw; @out = grep(!$saw{$_}++, @in);
Back to
Seekers of Perl Wisdom