If you want to get rid of the whitespace padding, you can just use it in numerical context:
$ perl -wle 'print ">", 0+" 123";' >123
Note that a blank is nothing special to unpack.
In reply to Re: pack/unpack left padding
by moritz
in thread pack/unpack left padding
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |