in reply to Pulling first 10 characters out of string?

And here's a snippet from 'perldoc perl':
perlre Perl regular expressions, the rest of the story perlreref Perl regular expressions quick reference
So, to read the perldocs on perlre, just do
perldoc perlre
at a command prompt.