in reply to
Pass the filename on the command line, and then do
# Inside the loop, $_ will contain each ten-digit number in turn
my @devices = <>;
Be a little simpler?
"Perl make the fun jobs fun
and the boring jobs bearable" - me
Results (346 votes),