Re: Processing a string containing an HTML response.

2005-02-08 Thread Scott R. Godin
Philip Tham wrote: Hi I am using LWP to send an HTTP Get and I receive the http response in a variable which I named resp. I would like to process the string resp->content token by token and modify the output. I see that HTML::TokeParser allows for this kind of processing but I have to read the

Processing a string containing an HTML response.

2005-02-08 Thread Tham, Philip
Hi I am using LWP to send an HTTP Get and I receive the http response in a variable which I named resp. I would like to process the string resp->content token by token and modify the output. I see that HTML::TokeParser allows for this kind of processing but I have to read the input from a file.

Re: Premature end of script headers

2005-02-08 Thread John W. Krahn
vishwas bhakit wrote: hello, Hello, I am getting following error. Premature end of script headers Can anybody plz tell me what is the cause of this. perldoc perldiag [snip] Premature end of script headers See Server error. [snip] Server error This is the erro

Re: TERM::ReadLine and program flow question

2005-02-08 Thread Scott R. Godin
Philipp Traeder wrote: On Tuesday 08 February 2005 18:57, Scott R. Godin wrote: This is my first time attempting to use Term::ReadLine to get input from the commandline while a script is running. I grok the basics of it, but am stumbling over the implementation of it. Let me illustrate: READLINE: {

Re: TERM::ReadLine and program flow question

2005-02-08 Thread Philipp Traeder
On Tuesday 08 February 2005 18:57, Scott R. Godin wrote: > This is my first time attempting to use Term::ReadLine to get input from > the commandline while a script is running. I grok the basics of it, but > am stumbling over the implementation of it. Let me illustrate: > > READLINE: > { > # closur

RE: Problem with script requiring valid referrer

2005-02-08 Thread Chris Devers
On Tue, 8 Feb 2005, Chris Schults wrote: > > This is really a question for the CGI list, but whatever. > > Sorry, didn't realize there was one. Thanks for the heads up! I'm not trying to be dismissive; just pointing out that there's a similar list that more specifically covers this topic. But a

Re: Problem with script requiring valid referrer

2005-02-08 Thread Lawrence Statton
> On Tue, 8 Feb 2005, Chris Schults wrote: > > > In both cases, our visitors swear that they are linking to these > > scripts from valid Grist pages. Any ideas why some people are getting > > the error messages? I've asked for browser and O/S info, but many are > > using the same setup we are u

RE: Problem with script requiring valid referrer

2005-02-08 Thread Chris Schults
> This is really a question for the CGI list, but whatever. Sorry, didn't realize there was one. Thanks for the heads up! > Have you looked in the web server logs? Are you recording referer data? If not, you should be, it's useful in cases like this. If you're recording it, you should be able t

Re: Problem with script requiring valid referrer

2005-02-08 Thread Chris Devers
On Tue, 8 Feb 2005, Chris Schults wrote: > In both cases, our visitors swear that they are linking to these > scripts from valid Grist pages. Any ideas why some people are getting > the error messages? I've asked for browser and O/S info, but many are > using the same setup we are using, which

Problem with script requiring valid referrer

2005-02-08 Thread Chris Schults
Hey all. On our website we have several forms (send a letter, ask a question, etc) that some of our visitors seem to have problems with. These forms require the referring page to be from a Grist Magazine domain. Here is some of the code: my $goback = param("goback") || ""; my $url =

TERM::ReadLine and program flow question

2005-02-08 Thread Scott R. Godin
This is my first time attempting to use Term::ReadLine to get input from the commandline while a script is running. I grok the basics of it, but am stumbling over the implementation of it. Let me illustrate: READLINE: { # closure, so I don't have to either # - call Term::ReadLine->new() every

Re: Premature end of script headers

2005-02-08 Thread Lawrence Statton
> --0-533587995-1107883018=:92269 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > hello, > > I am getting following error. > > Premature end of script headers > > Can anybody plz tell me > what is the cause of this. > > Thnx in advance Yes. The cause

Add img tags to html pages

2005-02-08 Thread Brian Volk
Hello All, I have a directory of .txt files that I converted to .html w/ the help of HTML:TextToHTML and now I would like to insert an image (from a dir of .jpg files) into each .html file. I have been Googling for a while now and I'm stuck.. Can someone please point me in the direction of

Re: Having trouble using "strict"

2005-02-08 Thread Nicolay Vasiliev
Oh, I got the main direction, thank you very much! John Moon wrote: Subject: Having trouble using "strict" Hello there! I got a trouble (I think). I'd like to store some variables in a separated file ie vars.pl to have a possibility of using them in different scripts by 'require "vars.pl"'. So if

Premature end of script headers

2005-02-08 Thread vishwas bhakit
hello, I am getting following error. Premature end of script headers Can anybody plz tell me what is the cause of this. Thnx in advance Yahoo! India Matrimony: Find your life partneronline.

Perldoc.com

2005-02-08 Thread Tyson Sommer
Is something awry with perldoc.com? I haven't been able to reach it for a few days. I get pings back, and the browser says page found, but it never loads. Thanks! Tyson (noob - 1st post to beginners) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: Having trouble using "strict"

2005-02-08 Thread Moon, John
Subject: Having trouble using "strict" Hello there! I got a trouble (I think). I'd like to store some variables in a separated file ie vars.pl to have a possibility of using them in different scripts by 'require "vars.pl"'. So if I use some script using the variable $var1 = somevalue storing i

Having trouble using "strict"

2005-02-08 Thread Nicolay Vasiliev
Hello there! I got a trouble (I think). I'd like to store some variables in a separated file ie vars.pl to have a possibility of using them in different scripts by 'require "vars.pl"'. So if I use some script using the variable $var1 = somevalue storing in 'vars.pl' and I call this variable wit

Re: Internal server error

2005-02-08 Thread Flemming Greve Skovengaard
vishwas bhakit wrote: hello I am running cgi script from browser n getting Internal server error. When i checked logs it is giving following error: BEGIN failed--compilation aborted at /path/to/file/file.cgi line 4. what may be the cause of this can you plz help me. Thnx in advance Yahoo!

Re: Internal server error

2005-02-08 Thread Chris Devers
On Tue, 8 Feb 2005, vishwas bhakit wrote: > I am running cgi script from browser [and] getting > Internal server error. > > When i checked logs it is giving following error: > BEGIN failed--compilation aborted at /path/to/file/file.cgi line 4. > > what may be the cause of this > can you [plea

RE: Reg parameters to a perl script

2005-02-08 Thread Moon, John
Subject: Reg parameters to a perl script Hi , I have a perl script which accepts few predefined parameters and values for them. It is like this : myscript.pl -param1 -param2 Now my requirement is , if value is also has and hyphen "-" then script should accept it and what ever i giv

Internal server error

2005-02-08 Thread vishwas bhakit
hello I am running cgi script from browser n getting Internal server error. When i checked logs it is giving following error: BEGIN failed--compilation aborted at /path/to/file/file.cgi line 4. what may be the cause of this can you plz help me. Thnx in advance Yahoo! India Matrimony: Find

Internal server error

2005-02-08 Thread vishwas bhakit
hello I am running cgi script from browser n getting Internal server error. When i checked logs it is giving following error: BEGIN failed--compilation aborted at /path/to/file/file.cgi line 4. what may be the cause of this can you plz help me. Thnx in advance Yahoo! India Matrimony: Find