caseydentinger has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance, Caseymy $doc_num; my $tmp_doc_num; my @doc_nums; my @doc; foreach( @doc_nums ) { @doc = (); $doc_num = substr( $_, 0, 7 ); foreach( @raw ) { @fields = split( /,/, $_ ); if( $fields[0] eq "AIP65" ) { $tmp_doc_num = substr( $fields[5], 0, 7 );; } else { $tmp_doc_num = substr( $fields[4], 0, 7 ); } ( $tmp_doc_num eq $doc_num ) ? push( @doc, $_ ) : next; } push( @docs, \@doc ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reference Question
by Tanktalus (Canon) on Aug 03, 2006 at 21:41 UTC | |
|
Re: Reference Question
by GrandFather (Saint) on Aug 03, 2006 at 21:41 UTC | |
|
Re: Reference Question
by Hue-Bond (Priest) on Aug 03, 2006 at 21:43 UTC | |
by GrandFather (Saint) on Aug 03, 2006 at 21:49 UTC | |
by caseydentinger (Novice) on Aug 03, 2006 at 21:48 UTC | |
by GrandFather (Saint) on Aug 03, 2006 at 21:54 UTC | |
|
Re: Reference Question
by planetscape (Chancellor) on Aug 03, 2006 at 23:50 UTC |