in reply to Re: match two files
in thread match two files

Here is simple solution:

"simple" by what measure? Fewer statements does not equate to simple.

If using Path::Tiny is safer why do you demonstrate less safe code?

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^3: match two files
by leszekdubiel (Scribe) on Dec 11, 2020 at 21:31 UTC

    I prefer to read whole files, and print them joined. All at once. I don't like algorithmic C-style flow: open file, read line by line, process line, print line...

    One can use whichever solution is better for his situation -- `cat file` or Path::Tiny... I don't know how to slurp whole file other simpler way.