in reply to How do I delete the first n characters on a line

regexes carry with them a performance penalty.
there is nothing wront with just:
$foo = substr($foo,$n) unless(length $foo => $n);
or
$substr($foo,0,$n)="" unless(length $foo => $n);
or
$substr($foo,0,$n,'') unless(length $foo => $n);
this is generally faster than a regex ;-)

Originally posted as a Categorized Answer.