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

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.

  • Comment on Re^7: redirect output from a command to another command