in reply to Re^2: Better way of writing "find the missing number" -- oneliner
in thread Better way of writing "find the missing number(s)"

Slices, slices...

perl -E '\@h{1..(@a=(1..3,5,6,7))+1};delete@h{@a};say%h'
  • Comment on Re^3: Better way of writing "find the missing number(s)" -- oneliner
  • Download Code