Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: read text file and create pdf and add image to each pdf page

by lorenzob (Acolyte)
on Sep 20, 2009 at 19:41 UTC ( #796423=note: print w/ replies, xml ) Need Help??


in reply to Re^3: read text file and create pdf and add image to each pdf page
in thread read text file and create pdf and add image to each pdf page

hi, again.. here is my little script.. every time i tried to run it, seems that is not able to read input file. Is there something that i missed in my script below ? thanks lorenzo alcatel@alexiim-as1:~> ./lorenzo.pl /home/alcatel/.scripts/table.dbdm1 Could not open : No such file or directory alcatel@alexiim-as1:~> #!/usr/bin/perl use PDF::Create; open(F, "<$input") or die "Could not open $input: $!\n"; while (<F>) { chomp; print "$_ \n"; #shows you what we have read } close F;


Comment on Re^4: read text file and create pdf and add image to each pdf page
Replies are listed 'Best First'.
Re^5: read text file and create pdf and add image to each pdf page
by Anonymous Monk on Sep 21, 2009 at 15:46 UTC
    You never define $input
      Right, thanks i was missing ARGV...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2015-07-31 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls