Re: Problems with LWP::UserAgent

2003-12-26 Thread Rob Dixon
Dan Anderson wrote: > > I am trying to create a spider to grab my books off of Safari > for a batch printing job so I don't need to go through each chapter > myself and hit the Print button. So I used this script to try and log > myself in to the safari site: > > # BEGIN CODE > #! /usr

using SSL unable to write file

2003-12-26 Thread Motherofperls
Hi everyone, I'm trying to send info with (https) SSL and my program comes to a halt when writing a file and sending an email. SSL was set up by my hosting service with an unauthenticated certificate that I had them set up for demo purposes. Does this have something to do with it? Or is it a

Scripting a CLI command on Windows 2000

2003-12-26 Thread Norrgard, Nate
Hello, all. I am a formerly competent perl scripter that has been away from some time working in other languages. Suffice to say, my perl is a bit rusty. If I weren't under a time constraint, I would find the answer to my own question after hours of research and trial and error. However, I h

Re: Problems with LWP::UserAgent

2003-12-26 Thread R. Joseph Newton
zentara wrote: > On 24 Dec 2003 16:05:16 -0500, [EMAIL PROTECTED] (Dan Anderson) wrote: > > > >I am trying to create a spider to grab my books off of Safari > >for a batch printing job so I don't need to go through each chapter > >myself and hit the Print button. So I used this script

Hi & a question

2003-12-26 Thread John McKown
I'm new here and a very novice Perl coder. And I have a question, of course . Is it more "Perl-like" to get information from the shell via UNIX Environment Variables or via the command line? For an example, I have writing a Perl program which reacts to messages sent to it. It has four input pa

RE: Hi & a question

2003-12-26 Thread Pandey Rajeev-A19514
hey !!! do you celebrate only perl even in the christmas vacation !!! Take a break !! Have a kit kat christmas cake. Merry Christmas to this perl group Rajeev -Original Message- From: John McKown [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 11:08 PM To: Perl Beginners

RE: Hi & a question

2003-12-26 Thread Steven Kreuzer
Why not just make DIR1, DIR2, IPADDR AND IPPORT global variables within the script, rather then requiring user to set env variables, which can become a pain in the ass. Your best bet would be to set them to some default variable, and then if the user needs to, she can override the default values b

RE: Hi & a question

2003-12-26 Thread Harvey, Bruce T.
I'm not a 'perl' pro, but I am a pro at using different shells, programs and so on in different environments. It depends on the environment in which you're running. For example, running on some type of *NIX at a command line, you might very well want command line options so that people and scri

Re: Problems with LWP::UserAgent

2003-12-26 Thread Dan Anderson
> Call me an old fogy, but I think that some of the mechanization of Web > communications has gone too far. Providing interactive features in the CGI > is one thing. It provides services for both sides of any transaction > involved. Batch harvesting of pages meant for human perusal, like batch >

Re: Problems with LWP::UserAgent

2003-12-26 Thread Steve Grazzini
On Fri, Dec 26, 2003 at 12:52:06PM -0500, Dan Anderson wrote: > So, all in all, I think that my usage falls under the term fair use. > I have no desire to circumvent Safari's security -- I'm just looking > to speed up something I do which conforms to the TOS of the web site. "Fair use" is copyri

Re: Hi & a question

2003-12-26 Thread R. Joseph Newton
Pandey Rajeev-A19514 wrote: > hey !!! > > do you celebrate only perl even in the christmas vacation !!! > Take a break !! Have a kit kat christmas cake. > Merry Christmas to this perl group > > Rajeev I might remind you--not everyone even celbrates that particular holiday. I join my family

Re: Hi & a question

2003-12-26 Thread R. Joseph Newton
John McKown wrote: > I'm new here and a very novice Perl coder. And I have a question, of > course . > > Is it more "Perl-like" to get information from the shell via UNIX > Environment Variables or via the command line? For an example, I have > writing a Perl program which reacts to messages sent

Art Gallery Perl Script

2003-12-26 Thread Joe Echavarria
Hi there, I am looking for Art Gallery Perl script available, can anyone recomend me one ?, thanks. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Newbie problems with > in a string

2003-12-26 Thread Albert Browne
I am using the code below in part of a subroutine. It displays ok later in the routine within a block. But when I try to use $Meta elsewhere the string appears to be empty. Further investigation shows the string is ok until it gets to the > in the string. The string looks like this and does in t

RE: Newbie problems with > in a string

2003-12-26 Thread Steven Kreuzer
Try changing $title = $query->param("Title"); to $title = $query->param('Title'); and do the same thing for the owner param Also, if you have an if statement that only executes one line of code when the statement evaluates true, you can do this: $Meta = "\n" if ($title ne ""); IMHO, this is m

Timeout for backtick and rsh?

2003-12-26 Thread glidden, matthew
In my current script, I'm polling machines for data, mostly by using rsh and the backtick. For example: my $retVal = `rsh $hostname -l root "/usr/local/blah"`; I'd like the backticks to timeout at 30 seconds, to prevent getting stuck. I already added a ping test before the call, but some pinged h

Re: Problems with LWP::UserAgent

2003-12-26 Thread Dan Anderson
> "Fair use" is copyright law -- I don't know whether you're infringing > anybody's copyright, but you're certainly violating O'Reilly's Terms of > Service, which requires that you agree: > > not to use "Web spiders" or any other automated retrieval > mechanisms when using the Service othe

Re: Newbie problems with > in a string

2003-12-26 Thread Rob Dixon
Albert Browne wrote: > > I am using the code below in part of a subroutine. It displays ok later in > the routine within a block. > But when I try to use $Meta elsewhere the string appears to be empty. > Further investigation shows the string is ok until it gets to the > > in the string. The stri

Bundle::CPAN reinstall problem

2003-12-26 Thread glidden, matthew
Each time I use the CPAN module, it prompts me to install a new version of CPAN. When I do, it stalls during the make test: ... t/mirroredby.ok t/signature.. (here it hangs) Pretty sure I have gnupg installed correctly. Any guesses on what else would be wrong? CPAN itself works okay, this

Re: Hi & a question

2003-12-26 Thread John McKown
On Fri, 26 Dec 2003, R. Joseph Newton wrote: > > Hi John, > > I'd suggest that both approaches can be somewhat lacking in portability. The > command line is something of a kludge, IMHO, as it still depends largely on > users typing in the correct parameters. I think ini files would be portable

Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
While I've already done this with a simple shell script using grep, I was trying to figure out how I can do the same thing in perl. I have an access_log from my apache web server and while I can manually enter a date for my pattern match (which works fine), I can't seem to get it automated pro

Re: Using perl to parse specific lines by date...

2003-12-26 Thread Randy W. Sims
On 12/26/2003 5:39 PM, u235sentinel wrote: While I've already done this with a simple shell script using grep, I was trying to figure out how I can do the same thing in perl. I have an access_log from my apache web server and while I can manually enter a date for my pattern match (which works f

Re: Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
Are these date functions of perl part of the normal distribution or a CPAN module? if (m|\Q$date\U|) This didn't seem to make a difference. I noticed a couple of commands that may help. System and exec. Apparently they were further in the Learning Perl book (I cheated.. flipped ahead ::

Re: Using perl to parse specific lines by date...

2003-12-26 Thread Randy W. Sims
On 12/26/2003 6:35 PM, u235sentinel wrote: Are these date functions of perl part of the normal distribution or a CPAN module? if (m|\Q$date\U|) This didn't seem to make a difference. I noticed a couple of commands that may help. System and exec. Apparently they were further in the Learn

Re: Using perl to parse specific lines by date...

2003-12-26 Thread John W. Krahn
U235sentinel wrote: > > While I've already done this with a simple shell script using grep, I > was trying to figure out how I can do the same thing in perl. > > I have an access_log from my apache web server and while I can manually > enter a date for my pattern match (which works fine), I can'

Re: Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
Thx to everyone on this. I chucked the system date function I originally wrote and used strftime and localtime. Guess I haven't read that part of the perl book yet ;-) So when I wrote the program originally, was it populating $date incorrectly? I'm hoping to understand why it didn't work in t

Re: Using perl to parse specific lines by date...

2003-12-26 Thread R. Joseph Newton
u235sentinel wrote: > While I've already done this with a simple shell script using grep, I > was trying to figure out how I can do the same thing in perl. > > I have an access_log from my apache web server and while I can manually > enter a date for my pattern match (which works fine), I can't s

Re: Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
26/Dec FYI.. playing with it a bit. I discovered there must be a carriage return (new line) after the line processes. I changed my original code to do this chomp(my $date = `date +%d/%b`); This fixed the problem. hehehe... I should have thought of this. Oh well.. not bad after a few weeks