http://www.perlmonks.org?node_id=1055399


in reply to Printing set characters from offset.

... substr ... not sure of the syntax ...

In addition to the on-line Perl documentation for substr linked by Corion, there's also
    perldoc -f substr
from your friendly local command line. See perldoc (or
    perldoc perldoc
from the command line).