substr($foo,5)=~/HLAG/; # Only beyond the 5th char substr($foo,10,100)=~s/narf/poit/g; #### (reverse $foo)=~/dlroW/;