RE: Loading results of pattern match into an array - help please

2009-01-24 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: jeffqt...@gmail.com [mailto:jeffqt...@gmail.com] > Sent: Friday, January 23, 2009 12:58 > To: beginners@perl.org > Subject: Loading results of pattern match into an array - help please > > I am trying to split a very long fixed lenght record into its > constit

Re: Loading results of pattern match into an array - help please

2009-01-23 Thread Owen
> I am trying to split a very long fixed lenght record into its > constituents, and then load them into an array. I have patterns like > '^ > (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. I > am stumped however as to how to get them into an array in a general > way. With 'use s

Re: Loading results of pattern match into an array - help please

2009-01-23 Thread Gunnar Hjalmarsson
jeffqt...@gmail.com wrote: I am trying to split a very long fixed lenght record into its constituents, and then load them into an array. I have patterns like '^ (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. my @array = $record =~ /^(.{3})(.{24})(.{6}).../; I havebasic

Re: Loading results of pattern match into an array - help please

2009-01-23 Thread Mr. Shawn H. Corey
On Fri, 2009-01-23 at 11:57 -0800, jeffqt...@gmail.com wrote: > I am trying to split a very long fixed lenght record into its > constituents, and then load them into an array. I have patterns like '^ > (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. I > am stumped however as to h