We don't bite newbies here... much | |
PerlMonks |
Re: How do I remove duplicate numeric elements of an array and preserve alphabetic elements? -- onelinerby Discipulus (Canon) |
on Jun 04, 2018 at 15:52 UTC ( [id://1215852]=note: print w/replies, xml ) | Need Help?? |
Hello jzelkowsz and welcome to the monastery and to the wonderful world of Perl! As you already got useful answers I propose you a short version(pay attention to windows double quotes!):
See perlrun to get all these perl switches explained, but use -MO=Deparse to see the oneliner exploded and more readable (the curly braces in $F[1]}{print are a trick called esquimo greeting;):
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|