in reply to ASCII text on UNIX (Sun/Solaris 10) to MVS packed decimal (comp-3) using perl pack inline command

I want to us a perl inline command ... in the UNIX shell script (if possible) in order to make those field conversions.

In terms of using Perl in the context of shell scripting, it's often easier (IMHO) to just put the intended Perl operation(s) into an executable perl file, and invoke that file as a shell command, rather than trying to shoe-horn a perl "one-liner" into the shell script.

Numerous advantages of that approach:

  • Comment on Re: ASCII text on UNIX (Sun/Solaris 10) to MVS packed decimal (comp-3) using perl pack inline command