Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Merging files, 1 line for every 10

by ForgotPasswordAgain (Deacon)
on Sep 06, 2011 at 22:14 UTC ( #924475=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Slurp;
    my @file1 = read_file('file1');
    my @file2 = read_file('file2');
    
  2. or download this
    my $lines = merge_lines(\@file1, \@file2);
    write_file('file3', @$lines);
    
  3. or download this
    sub merge_lines {
        my ($lines1, $lines2) = @_;
    ...
        ....
        return \@lines;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924475]
help
Chatterbox?
[Corion]: Mhmm. Our datawarehouse is named after the department, except that the department changed its name one year ago. Now I guess I'm looking for the moral equivalent of "THE Datawarehouse", where "THE" stands for "Traditional High-valued Expertise" ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-07-26 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (386 votes). Check out past polls.