$s = pack 'A*', unpack( 'xA*', $s ); # ASCII only, please ;)I see no reason for the pack. And you're better of using 'a*' not 'A*', unless you really want to trim trailing spaces.
$s = unpack 'xa*', "qwerty "; print "'$s'\n";
In reply to Re^2: cut of first char of a string
by bart
in thread cut of first char of a string
by holli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |