in reply to Re^2: concatenating text files before reading
in thread concatenating text files before reading

Not really, too many caveats Write to existing file with character insert, Dangerous diamonds! safe diamonds FMTYEWTK About Mass Edits In Perl - Perl.com Good-bye Unix filter idiom

  • Comment on Re^3: concatenating text files before reading

Replies are listed 'Best First'.
Re^4: concatenating text files before reading
by Eily (Monsignor) on Sep 05, 2013 at 13:11 UTC

    The while (<>) can be tricky when used with initial @ARGV (script parameters), but in this case, as @ARGV is the result of a glob, most of these problems are avoided. There is however something you should check: that @ARGV is not empty after the glob operation, or <> will read in the standard input. localising the change to @ARGV could avoid some trouble as well.

    There's also taint mode to play it more secure.