Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Merging two files by command line

by markkawika (Monk)
on Aug 20, 2009 at 18:39 UTC ( [id://790167]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    for my $key (keys %stuff) {
        print "$key @{$stuff{$key}}\n";
    }
    
  2. or download this
    $ cat file1
    Adam 1 2 3
    ...
    $ ./merge.pl file1 file2
    Adam 1 2 3 4 5 6
    Eve 4 5 6 7 8 9
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-10-12 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.