Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: extracting data at a specific displacement
Date: Jun 12 2000 2:26PM
Klein, Shoshana R writes:
> I'm a mainframe programmer with a minimal amount of experience with perl.
> Is there a way to extract data from a flat file based on a specific
> displacement and length?
> Until now I've been using regular expressions to match the data I need, but
> I find this
> very time consuming when I know I want bytes 43-63 no matter what it
You can use substr() or unpack() for this.
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: email@example.com