Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Searching for two elements in two different lines

by jwkrahn (Monsignor)
on Aug 31, 2013 at 05:01 UTC ( #1051681=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #use warnings;
    
  2. or download this
    my $count = 0;
    
  3. or download this
    my ($el1,$el2,$output,$input);
    my (@data,@file2_data,@array_2,@data_1,@array_4,@data_4,@array_5,@arra
    +y_6,@data_7,@array_8);
    ...
    my ($marc_data,$marc_add,$V_output,$join_1,$join_2,$join_3,$join_4);
    my ($data,$address,$stage_output,$element2,$marc_data_1,$marc_add_1,$j
    +oin_for_2nd_stage);
    my ($element_4,$file3_data,$file3_add,$dataout,$marc_array,$file3_data
    +_1,$file3_add_1,$dataout_1,$marc_array_1,$join_1st_stage_file2_file3,
    +$nothing,$nothing_1,$nothing_2,$nothing_3,$dataout_final,$marc_array_
    +final);
    
  4. or download this
    open my $fh2, '<', $file2 or die "Can't open $file2: $!"; #XX.file2 fi
    +le
    open my $fh3, '<', $file3 or die "Can't open $file3: $!"; #xx.file3 fi
    +le
    ...
    ...
    open my $fh6, '<', $file3 or die "Can't open $file2: $!"; #XX.file2 fi
    +le
    my @array_7 = <$fh6>;
    
  5. or download this
                  $join_1 = join (" ", ("$input_1","$V_output","$marc_data
    +","$marc_add","$stage_1"));
    ...
    ...
        $final_join = join (" ",("$input_2","$output_2","$data","$address"
    +,"$stage_output_1","$file3_data","$file3_add","$dataout","$marc_array
    +","$nothing","$nothing_1","$dataout_final","$marc_array_final"));
    ...
        $final_join = join (" ",("$input_2","$output_2","$data","$address"
    +,"$stage_output_1","$file3_data","$file3_add","$dataout","$marc_array
    +","$nothing","$nothing_1","$dataout_final","$marc_array_final"));
    
  6. or download this
    #!/usr/bin/perl
    use strict;
    ...
    HEADER
    printf $fh4 "%-25s %12s %4s %6s %-30s %30s %2s %4s %20s %20s\n", ( spl
    +it )[ 0 .. 3, 7 .. 12 ] for @array_6;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2015-07-06 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls