In your character class [0-9A-Za-z] the characters [G-Zg-z] are not hexadecimal digits so hex($1) will not be able to convert them to anything.
Posted by jwkrahn.
In reply to Re: ASCII text on UNIX (Sun/Solaris 10) to MVS packed decimal (comp-3) using perl pack inline command
by Anonymous Monk
in thread ASCII text on UNIX (Sun/Solaris 10) to MVS packed decimal (comp-3) using perl pack inline command
by jayw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |