Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to concatenate the contents of two files?

by crashtest (Curate)
on Sep 02, 2004 at 20:37 UTC ( [id://388092]=note: print w/replies, xml ) Need Help??


in reply to How to concatenate the contents of two files?

If this is all you want to do with those files, you could just hand this off as a system command, like so:
`more B.txt >> A.txt`
See perlop if you're not familiar with "backtick" notation.

Replies are listed 'Best First'.
Re^2: How to concatenate the contents of two files?
by Aristotle (Chancellor) on Sep 02, 2004 at 21:01 UTC

    Ugh, please don't use backticks simply to invoke a shell command.

    system 'cat B.txt >> A.txt';

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found