my ($x,$y) = ( $string =~ /^(.{$n})(.*)$/ );
Originally posted as a Categorized Answer.
In reply to Re: How do I pull n characters off the front of a string?
by Masem
in thread How do I pull n characters off the front of a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |