in reply to Re: cut of first char of a string
in thread cut of first char of a string
$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";
|
|---|