in reply to add missing elements and remove duplicates....and some more questions.
Note that your input list doesn't contain hex numbers, though. You included 0x47 to the list, but it's a literal, so Perl will translate it into number during compilation. Try to define the array with strings (as if coming from an input file):
my @arr = qw( 10 10 20 0x47 1 30 45 45 );
Can you translate this into a list of numbers with the same elegance and wit?
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: add missing elements and remove duplicates....and some more questions.
by pritesh_ugrankar (Monk) on Apr 22, 2017 at 22:49 UTC | |
by NetWallah (Canon) on Apr 23, 2017 at 00:54 UTC | |
by pritesh_ugrankar (Monk) on Apr 23, 2017 at 17:41 UTC |