dshaw21369
Programmer
- Jul 8, 2002
- 64
I have been struggling with this issue for a while and need help;
I'm tring to print 3 collumns vertically in the following order:
@cobol_out_circ_id_2 @section_count2 @chunks
Here is my code:
foreach $cobol_out_record(@uniq_cobol_out)
{
$cobol_out_snapshot= substr($cobol_out_record,46,6);
if ($cobol_out_snapshot eq "SSSSSE"
{
@yesterdays_cobol_out_message = $cobol_out_record;
@cobol_out_circ_id= substr($cobol_out_record,93,5);
@cobol_out_circ_id_2=(@cobol_out_circ_id_2,@cobol_out_circ_id);
@section_count=substr($cobol_out_record,98,4);
@section_count2=(@section_count2,@section_count);
@all_sections=substr($cobol_out_record,102,100);
@all_sections_CES=(@all_sections_CES,@all_sections);
}
}
foreach $cobol_out_sections (@all_sections_CES)
{
while($cobol_out_sections =~ /.{5}/g)
{
push @chunks, $&;
}
$new_line = "@chunks";
print Snapshot "$new_line \n";
@chunks = ();
}
foreach $circuit (@cobol_out_circ_id_2, @section_count2)
{
print Snapshot "$circuit\n";
}