in reply to Re^3: redirect output from a command to another command
in thread redirect output from a command to another command

Yes, I thought about that, but I have not been inclined toward the use of Cpan modules. For one, I lose portability. Also, in the past whenever I looked into using one (can't remember which ones now) I always got discouraged by the lack of simple documentation, and instruction on how to implement. All I could ever find was scraps of this and that.

EDIT: Though I must say, the Cpan page on diff is the best I've seen.
  • Comment on Re^4: redirect output from a command to another command

Replies are listed 'Best First'.
Re^5: redirect output from a command to another command
by ikegami (Patriarch) on Mar 02, 2011 at 21:02 UTC

    I lose portability

    You'd gain portability.

      ????

      I thought I would have to depend on the machine the script is being run on having the module I need.

        That's not portability. Ease of installation, maybe? Portability is a measure of the ability to run on different platforms. The /dev/fd solution is not portable, whereas Algorithm::Diff will run on any platform that can run Perl.

        Just install Algorithm::Diff as part of the process of installing the script. If you use a standard installer, it's just a question of adding one line to Makefile.PL/Build.PL.