#assuming $n contains the number $string =~ s/^(.{$n})//; $first_n = $1;
Originally posted as a Categorized Answer.
In reply to Re: How do I pull n characters off the front of a string?
by cbraga
in thread How do I pull n characters off the front of a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |