in reply to Re: How do I pull n characters off the front of a string?
in thread How do I pull n characters off the front of a string?

unpack:
($chars, $string) = unpack "a$n a*", $string;
The four parameter substr is clearly the cleanest solution though.

Makeshifts last the longest.