> -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
> 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
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
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