in reply to How to skip first n character from data and read every m character..

Not sure whether you mean that your data comes in through a file or STDIN (in anycase, if you don't consider converting to a file from STDIN a problem here's a snippet). Also, unfortunately, I don't know how not to read the first few characters, but chopping it off, I consider is easy. You may need to think of formatted input as an alternative. Here's the snippet:
use strict; use warnings; my ($line, $line2); while ($line = <>) { chomp($line); $line2 = substr($line,9,80); print "$line2\n"; }
  • Comment on Re: How to skip first n character from data and read every m character..
  • Download Code