PDF to Text

2007-07-13 Thread Mike Lesser
Hi all. Like it says, I need to extract the content of a PDF file. I installed the tool pdftotext, and it works fine for my needs. I recall there was a very simple module that used this to extract text, but for the life of me, I can't find it on CPAN! Any leads? Using a command-line script

Re: Paths, Spaces, Getopt::Long

2007-06-03 Thread Mike Lesser
Okay, I eliminated the tidy with some more robust regex. D'oh! Case closed! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Paths, Spaces, Getopt::Long

2007-06-03 Thread Mike Lesser
On Jun 3, 2007, at 1:59 PM, Chas Owens wrote: On 6/3/07, Mike Lesser <[EMAIL PROTECTED]> wrote: snip I have to assume that paths can be converted easily for use in shells and such, without resorting to RegEx. Any ideas? snip Aside from the multi argument version of system that T

Fwd: Paths, Spaces, Getopt::Long

2007-06-03 Thread Mike Lesser
Begin forwarded message: From: Mike Lesser <[EMAIL PROTECTED]> Date: June 3, 2007 3:48:56 PM EDT To: "Chas Owens" <[EMAIL PROTECTED]> Subject: Re: Paths, Spaces, Getopt::Long On Jun 3, 2007, at 1:59 PM, Chas Owens wrote: On 6/3/07, Mike Lesser <[EMAIL PROTECTED

Fwd: Paths, Spaces, Getopt::Long

2007-06-03 Thread Mike Lesser
Well I'm not sure. I may be explaining this badly. I'll go thru all the details in case it helps. The path I pass when I'm executing the script is escaped, which I assume is correct. Once that path is read by Getopt, I print it and, voila, no escapes, just nice-to-read spaces. This pa

Paths, Spaces, Getopt::Long

2007-06-03 Thread Mike Lesser
Hi all. I have a problem that _must_ have a very simple solution (that I can't find). I use the module Getopt::Long to read arguments, one of which is a file path that may have spaces. The path string that is returned from Getopt has spaces without escape chars. The string seems to be fine

testing return values

2007-04-22 Thread Mike Lesser
Hiya. I'm looking for the correct Perl style for testing and storing a return value in a control statement. The solution in any other language is pretty obvious, but I get the distinct impression that there's a 'right' way in Perl... Let's say I want to test a scalar returned from a subrout

Re: Diagnosing use/lib problems

2007-03-27 Thread Mike Lesser
On Mar 26, 2007, at 7:32 PM, Tom Phoenix wrote: On 3/26/07, Mike Lesser <[EMAIL PROTECTED]> wrote: Hi all. First time using subroutines in external files. I've had some sporadic success with some simple libs (not modules), but can't seem to get consistent results. Wha

Diagnosing use/lib problems

2007-03-26 Thread Mike Lesser
Hi all. First time using subroutines in external files. I've had some sporadic success with some simple libs (not modules), but can't seem to get consistent results. I've got a few subs files ending in 'pl' in a folder within my scripts' folder: UnitedScripts (dir) myScript.pl Lib

Re: CGIs & CSS - References

2005-04-30 Thread Mike Lesser
Current versions of CGI.pm should generate XHTML by default, iirc. Hmm. Does it include the doctype stuff and so forth? I seem to be getting along fine with print qq() today, but I figured CGI.pm would help with tables and links and so forth. I guess there's no need to settle on using just CGI.

CGIs & CSS - References

2005-04-30 Thread Mike Lesser
Hi gang I'm working on my first CGIs, and have been adding stylesheets. I'm currently working on my own machine, under localhost. I have two questions; (1) What's the contemporary way to print xhtml from my CGI? Should I use CGI.pm, or something else? I currently just have a mess of print comma

Re: perl module to create pdf reports

2005-04-30 Thread Mike Lesser
Whoops! Top-post! Chris, Yes, I did search CPAN and found a lot of interesting modules. I will mention that I had asked for ideas and insights, over and above of just plain module names. I guess you often assume people do not search CPAN, and hence I can understand the frustration your email seems

CGI advice

2005-04-12 Thread Mike Lesser
Hi all. Okay, here's the latest. I've been screwing around with my first CGIs - pretty cool, now I see the appeal. Anyway, I'm fairly comfortable using MySQL and generating XML output from it, and printing it to files and stdout. Now I'd like to create the usual web interface that starts with a

Re: .pm and .pl files.

2005-04-01 Thread Mike Lesser
So if we don't want to be like dweebs, it's no extension for scripts, pl for libraries? What's weird is that many of the O'Reily books I have use the pl... so I blame them. Is the library file thing passe? I was going to put some stuff in a library, but I get the impression that I should jump

Re: More Regex for Newbies

2005-03-29 Thread Mike Lesser
I'm fairly new too, but s/\(.*\)//g Should work? Thanks David. The "g" sort of throws me, but I had The Epiphany last night. I'm still a little bit confused, but I'm making headway now. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

More Regex for Newbies

2005-03-28 Thread Mike Lesser
Hi all. I have this strange relationship with Regex. I seem to be able to get simple stuff accomplished, but in really brute-force ways, and I think I'm missing some fundamental aspect of its usage. I'm forced to chomp thru strings from the side like pac-man. It's like I can do a simple match or

Re: XML Generator DBI

2005-03-23 Thread Mike Lesser
-w is kind of pan-galactic and influences modules you're calling, regardless of their own 'warnings' settings. Try 'use warnings' without -w. See p861 in the camel 3rd edition. HTH, GStC. That's exactly what I needed to hear. Thank you Graeme! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

XML Generator DBI

2005-03-19 Thread Mike Lesser
Hi all. I'm messing with XML & MySQL, and I may have run into a newbie snag. I'm using XML::Generator ::DBI with XML::Handler::YAWriter, in the same manner that I've seen in tutorials, the MySQL Cookbook, and other assorted places. $writer = XML::Handler::YAWriter->new (AsString => 1); $query = 'SE