Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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
    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
    my ($element_4,$file3_data,$file3_add,$dataout,$marc_array,$file3_data
  4. or download this
    open my $fh2, '<', $file2 or die "Can't open $file2: $!"; #XX.file2 fi
    open my $fh3, '<', $file3 or die "Can't open $file3: $!"; #xx.file3 fi
    open my $fh6, '<', $file3 or die "Can't open $file2: $!"; #XX.file2 fi
    my @array_7 = <$fh6>;
  5. or download this
                  $join_1 = join (" ", ("$input_1","$V_output","$marc_data
        $final_join = join (" ",("$input_2","$output_2","$data","$address"
        $final_join = join (" ",("$input_2","$output_2","$data","$address"
  6. or download this
    use strict;
    printf $fh4 "%-25s %12s %4s %6s %-30s %30s %2s %4s %20s %20s\n", ( spl
    +it )[ 0 .. 3, 7 .. 12 ] for @array_6;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051681]
[Discipulus]: dabella12 if you dont use <c> code tags</c> no one will ever look at your problem

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-06-24 14:16 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (558 votes). Check out past polls.