in reply to Perl Weekly Challenge 206 with List::Util
perl -E "map{$h{$_}++}$ARGV[0]..$ARGV[-1],@ARGV;map{$h{$_}==3?$r.=' Du +plicate is '.$_:$h{$_}==1?$r.=' Missing is '.$_:''}keys%h;say $r||-1"
L*
UPDATE ..oops! yes LanX is right I jumped to 208, sorry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Weekly Challenge 206 -- oneliner
by LanX (Saint) on Mar 20, 2023 at 11:13 UTC |