in reply to opening files

Why do you append the .txt extension to $ins_filename but use $txt_filename in your system? Anyway:
($in_filename, $out_filename) = @ARGV; $out_filename = $in_filename if ( !($out_filename) ); for my $num (1..20) { system ("platon", "-c", "$in_filename$num.txt") +}
Note it's much better to use the multi-argument form of system. See perldoc -f system.

Makeshifts last the longest.