develooper Front page | perl.beginners | Postings from March 2008

Copy multiples files to a single file in seperate pages..

From:
AY
Date:
March 27, 2008 11:15
Subject:
Copy multiples files to a single file in seperate pages..
Hi,

I'm a beginner with Perl and requires help..

Trying to understand if we have a mechanism to copy multiple files
( txt files ) to a single file (say abc.txt) with each file residing
in single page. Each input file is large enough to fit into a single
page. I have tried using perl format's like $- and other mechanism in
vain.

Is there a way to insert a page character after reading each file or
seperate each file into different pages? Any suggestions other than
adding "\n" is greatly appreciated..

The goal of this exercise is to convert the single file (abc.txt) to
postscript file and then to pdf using ps2pdf utility.. Can't use cpan
modules as some of these input files contain unicode characters...

This post is more verbose but repeated as the earlier post didn't
appear in the group..

Thanks for your patience,
-Wg.




Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About