SparkeyG has asked for the wisdom of the Perl Monks concerning the following question:
This is completly humbling, but I haven't a clue why this is droping core.
@dataArr is 4 by x array, while @line is an array with the return of a Date::Manip::ParseRecur. What I want to do is take the 3rd element of the current line, parse it through ParseRecur, then create a larger array, one line for each date returned in @date. This is for easier sorting later in the program.
--SparkeyG
Perl Bonehead
@dataArr is 4 by x array, while @line is an array with the return of a Date::Manip::ParseRecur. What I want to do is take the 3rd element of the current line, parse it through ParseRecur, then create a larger array, one line for each date returned in @date. This is for easier sorting later in the program.
I'll also be gratefull for a more elegant approach to my problem if one exsists.for (my $count=0; $count <= $#dataArr; $count++) { my (@date) = &ParseRecur($dataArr[$count][3], $base, $start, $stop +); foreach my $line (@date) { $bigArr[0 .. 2] = $dataArr[$count][0 .. 2]; $bigArr[3] = $line; $bigArr[4] = $dataArr[$count][4]; } }
--SparkeyG
Perl Bonehead
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why does this core? or How am I being a bonehead
by stephen (Priest) on Mar 16, 2001 at 01:34 UTC | |
by SparkeyG (Curate) on Mar 16, 2001 at 01:46 UTC | |
by stephen (Priest) on Mar 16, 2001 at 02:57 UTC | |
Re: Why does this core? or How am I being a bonehead
by McD (Chaplain) on Mar 16, 2001 at 00:35 UTC | |
Re: Why does this core? or How am I being a bonehead
by enoch (Chaplain) on Mar 15, 2001 at 22:52 UTC | |
by SparkeyG (Curate) on Mar 15, 2001 at 23:06 UTC | |
by enoch (Chaplain) on Mar 16, 2001 at 00:16 UTC | |
(tye)Re: Why does this core? or How am I being a bonehead
by tye (Sage) on Mar 18, 2001 at 14:03 UTC |
Back to
Seekers of Perl Wisdom