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

Re: How to concatenate the contents of two files?

by fletcher_the_dog (Friar)
on Sep 02, 2004 at 20:27 UTC ( #388089=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $outfile = shift;
    open OUT,">".$outfile or die "Could not open $outfile:$!\n";
    print OUT $_ while <>;
    
  2. or download this
    perl -e 'open OUT,">".shift;print OUT <>' output *.txt
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-10-07 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (29 votes). Check out past polls.

    Notices?