Perl substring, lowercase, uppercase

Looks a bit like this

my $except_first_three_chars = substr($full_string,3);

ie. (expression, offset [, length])

Or maybe you want a file extension?

my $ext = lc(substr $filename, -3, 3);

Some other string gear:

funcaction
lc(expr)lowercase
uc(expr)UPPERCASE
ucfirst(expr)Capitalise

Posted 06 Aug 2007, tagged with perl string