Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Join files using perl

by Cristoforo (Deacon)
on Jan 11, 2013 at 20:17 UTC ( #1012970=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ID1     50
    ID2     60
    ID3     100
    
  2. or download this
    ID1     20
    ID2     100
    ID3      10
    
  3. or download this
    C:\Old_Data\perlp>perl t9.pl o44.txt o55.txt
    ID1     50      20
    ...
    ID3     100     10
    
    C:\Old_Data\perlp>
    
  4. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    for my $id (sort keys %data) {
        print join("\t", $id, @{ $data{$id} }), "\n";    
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-08-29 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls