in reply to XYZ Manipulation

You're not doing anything with IN & OUT so you're not actually reading your input file.

Why not start simply with a while loop, and ignore map and grep until you get your algorithm working.

while (my $line = <IN>) { chomp $line; next unless $line; # do stuff with each line here }

BTW what did you think "printf $destination ..." was going to do?

Replies are listed 'Best First'.
Re^2: XYZ Manipulation
by jcklasseter (Sexton) on Jun 15, 2015 at 17:49 UTC
    Well, I had assumed it would print the output to the specified file?