It'd be nice if I could use File::Slurp to "burp" my processed file array back to disk, but there's a small snag. At some points, during some runs, new data would need to be inserted into the array, to mimic the current process, which runs something like this...

# process @htm_rows[$x]

print $OUT $htm_rows[$x++];

# process @new_rows[$y]

print $OUT $new_rows[$y++];

# process @htm_rows[$x]

print $OUT $htm_rows[$x++];

and so on.  Is there some module or other goodie out there that will facilitate inserting stuff into an array so I can do all the processing and insertions, and *then* burp the array out to the file in one "swell foop"? Something that'd work like this:

before:

$x[0] = 'a'
$x[1] = 'c'
$x[2] = 'd'

after

$x[0] = 'a'
$x[1] = 'b'
$x[2] = 'c'
$x[3] = 'd'

 Because I'm working with an HTML table here, each insertion would require the addition of eight array members--one HTML table row.

TIA,

Deane
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to