Storing Form Data without submitting it.

2003-11-26 Thread Marcus Willemsen
Hi everybody, I' m not sure this is the right list to ask this kind of question but I don't know where else. We are using html forms to insert and update news articles (texts) stored in a mysql database. Ever so often one of our journalists forgets to press the submit button or his computer

Redirecting to a different url with cgi

2003-11-26 Thread Ash Singh
What is the perl code to redirect to a new url, in cgi. All I need is to execute a perl script and when its done to redirect the clients browser to a new location. I am running Windows 2000 and IIS. Developer eMessageX.com Tel: +27 (0)11 789 1808 Fax: +27

Re: Storing Form Data without submitting it.

2003-11-26 Thread Wiggins d Anconia
Hi everybody, I' m not sure this is the right list to ask this kind of question but I don't know where else. We are using html forms to insert and update news articles (texts) stored in a mysql database. Ever so often one of our journalists forgets to press the submit button or his

Re: Redirecting to a different url with cgi

2003-11-26 Thread Wiggins d Anconia
What is the perl code to redirect to a new url, in cgi. All I need is to execute a perl script and when its done to redirect the clients browser to a new location. I am running Windows 2000 and IIS. If you are using CGI.pm then it has a 'redirect' method:

Re: Storing Form Data without submitting it.

2003-11-26 Thread Andrew Gaffney
Wiggins d Anconia wrote: Hi everybody, I' m not sure this is the right list to ask this kind of question but I don't know where else. We are using html forms to insert and update news articles (texts) stored in a mysql database. Ever so often one of our journalists forgets to press the submit

RE: Storing Form Data without submitting it.

2003-11-26 Thread Bob Showalter
Andrew Gaffney wrote: I believe there is an HTTP status code that tells the browser that the form was successfully submitted, but not to go anywhere. I don't know what it is off the top of my head, but I think it would work in this case. Would that be 204 No Content?

CGI Redirection

2003-11-26 Thread Ash Singh
print $query-redirect('http://www.google.com '); Thanks a lot for your assistance, I need to redirect and the browser automatically go to that location, without any user intervention. Is there any way to do this. Developer eMessageX.com Tel: +27 (0)11

Re: Storing Form Data without submitting it.

2003-11-26 Thread Todd W.
Wiggins D Anconia [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi everybody, I' m not sure this is the right list to ask this kind of question but I don't know where else. We are using html forms to insert and update news articles (texts) stored in a mysql database. Ever

RE: CGI Redirection

2003-11-26 Thread Charles K. Clarkson
Ash Singh [EMAIL PROTECTED] wrote: : print $query-redirect('http://www.google.com '); : Thanks a lot for your assistance, I need to redirect : and the browser automatically go to that location, : without any user intervention. Is there any way to : do this. It depends upon your definition

Re: Redirecting to a different url with cgi

2003-11-26 Thread Aman Raheja
#!/usr/bin/perl use strict;use CGI qw(:standard); my $url = "" ## The URL to be redirected to print redirect($url); Aman Raheja AGF Technologies http://www.agftech.com - Original Message - From: Ash Singh To: [EMAIL PROTECTED] Sent:

Re: factorial function

2003-11-26 Thread Shawn O'Donnell
Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? Do you mean 1000! That's a super-sized number--something like 10-to-the-2566th power, if I am using Sterling's approximation correctly. I don't know of a numeric type that stores such animals. If

RE: symbol Perl_get_sv

2003-11-26 Thread NYIMI Jose (BMB)
Try ldd : %ldd /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so Or %ldd -s /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so my_paste %man ldd Reformatting page. Please Wait... done User Commands

Re: factorial function

2003-11-26 Thread drowl
Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? Do you mean 1000! That's a super-sized number--something like 10-to-the-2566th power, if I am using Sterling's approximation correctly. I don't know of a numeric type that stores such animals.

Re: Openning Files Names with Embedded Spaces

2003-11-26 Thread Rob Dixon
Jeff wrote: I am using Active Perl under Windoze 98. I am trying to open a file that has embedded spaces. I tried escaping the spaces as well, and that didn't work either. #! perl -w $file = c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle beach web site.lnk; print

Re: factorial function

2003-11-26 Thread Rob Dixon
B. Rothstein wrote: Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? Hi. Use Math::BigInt. The program below stores the first 1000 factorials into an array and prints out the thousandth, which is 2568 digits long. It also runs incredibly quickly

Re: perl is slick

2003-11-26 Thread Todd W.
Rob Dixon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Todd W. wrote: Rob Dixon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Todd wrote: Perl is so slick: if ( $self-{code} ) { $string = $self-{code}; } else {

RE: factorial function

2003-11-26 Thread Bob Showalter
B. Rothstein wrote: Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? This will compute it: perl -MMath::BigInt -le '$n = Math::BigInt-new(1); $n *= $_ for 2..1000; print $n' You can stick the result in an array if you want... -- To unsubscribe,

RE: factorial function

2003-11-26 Thread drowl
B. Rothstein wrote: Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? This will compute it: perl -MMath::BigInt -le '$n = Math::BigInt-new(1); $n *= $_ for 2..1000; print $n' in trying to understand this i guess that: $n =

RE: factorial function

2003-11-26 Thread Bob Showalter
[EMAIL PROTECTED] wrote: B. Rothstein wrote: Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? This will compute it: perl -MMath::BigInt -le '$n = Math::BigInt-new(1); $n *= $_ for 2..1000; print $n' in trying to understand

RE: Is slicing web images possible with perl?

2003-11-26 Thread Dan Muey
I've tried to install image magic on my server a couple years ago, but found I believe Image::Magick and Imager can help you grab certain area of an image into another image objetc with which you can do as you please. HTH DMuey out it wasn't necessary for my project. But now I may

Re: Is slicing web images possible with perl?

2003-11-26 Thread Rob Dixon
[EMAIL PROTECTED] wrote: I've tried to install image magic on my server a couple years ago, but found out it wasn't necessary for my project. But now I may need it. All I want to do is slice an image and add it to a database. It has to be executed automaticall from a script. Hi. Have you

RE: symbol Perl_get_sv

2003-11-26 Thread Ying Liu
Jose, After I ran, it shows me: %ldd /mz/hd/liuyi/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Tk/Event/Event.so libm.so.1 = /usr/lib/libm.so.1 libc.so.1 = /usr/lib/libc.so.1 libdl.so.1 =/usr/lib/libdl.so.1

RE: symbol Perl_get_sv

2003-11-26 Thread NYIMI Jose (BMB)
So ldd said all expected objects are there. I was suspecting a missing one. In that case ldd would say libm.so.1 = not found For instance. Anyway, i noticed something that bother me in your post: That is version of your perl on your machine: 5.8.0 and 5.00503 When for instance, you type %perl -v

Re: symbol Perl_get_sv

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 08:05 US/Pacific, NYIMI Jose (BMB) wrote: [..] Anyway, i noticed something that bother me in your post: That is version of your perl on your machine: 5.8.0 and 5.00503 [..] A part of the issue seems to be that minor glitch, In one of the updates Sun came out with a

RE: symbol Perl_get_sv

2003-11-26 Thread Ying Liu
Thanks! I see the conflict here: When for instance, you type %perl -v This is perl, version 5.005_03 built for sun4-solaris %which perl /bin/perl /usr/local/bin/perl -v This is perl, v5.8.0 built for sun4-solaris Now, I see where the problem is. Thanks, Ying -- To unsubscribe,

Re: symbol Perl_get_sv

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 08:46 US/Pacific, Ying Liu wrote: [..] /usr/local/bin/perl -v This is perl, v5.8.0 built for sun4-solaris Now, I see where the problem is. Thanks, Ying Stylish! It appears that you have a multi-perl environment. This will allow you to work in both the 5.8 world and

Re: symbol Perl_get_sv

2003-11-26 Thread Ying Liu
Stylish! It appears that you have a multi-perl environment. This will allow you to work in both the 5.8 world and the 5.5 world - although I would still recommend that you chat with your SysAdmin about upgrading the /usr/perl5/bin/perl to the 5.6.1 version. ciao drieux Thanks! Fran

Testing Perl on a Web Page

2003-11-26 Thread Jeff Westman
Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is available and works ? I would also like to see what version of perl is running ? Could someone post

Re: Testing Perl on a Web Page

2003-11-26 Thread Wiggins d Anconia
Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is available and works ? I would also like to see what version of perl is running ? Could

RE: Testing Perl on a Web Page

2003-11-26 Thread Dan Muey
Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is Try this: test.cgi #!/usr/bin/perl -w use strict; use CGI 'header'; print header(); print

RE: Testing Perl on a Web Page

2003-11-26 Thread Jeff Westman
Dan Muey [EMAIL PROTECTED] wrote: Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is Try this: test.cgi #!/usr/bin/perl -w use strict;

RE: Testing Perl on a Web Page

2003-11-26 Thread Bob Showalter
Jeff Westman wrote: Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is available and works ? I would also like to see what version of perl is running

RE: Testing Perl on a Web Page

2003-11-26 Thread Dan Muey
Dan Muey [EMAIL PROTECTED] wrote: Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is Try this: test.cgi #!/usr/bin/perl -w

RE: Testing Perl on a Web Page

2003-11-26 Thread Jeff Westman
Dan Muey [EMAIL PROTECTED] wrote: Hello There, I would like to see if my ISP has perl available if one wanted to incorporate perl into a web page. Is there a quick and dirty web page I can upload to my ISP to test if perl is Try this: test.cgi #!/usr/bin/perl

RE: Testing Perl on a Web Page

2003-11-26 Thread Dan Muey
Thanks again...! No sweat! Everything makes sense and I appreciate your answering me. Now, I assume the script has to be executable so I will need telnet access. I tried (instead) to use a perl script I have that does ftp (including site-chmod) -- assuming I can't

Html::tokeparser::simple

2003-11-26 Thread Paul Kraus
Someone want to show me how this module can help parse out html? I want to grap text between tdtext/td being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what the above th tag has in it. So if th tag = then store text

Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Jerry Rocteur
On Tuesday, Nov 25, 2003, at 06:13 Europe/Brussels, Andrew Gaffney wrote: Jason Dusek wrote: On Monday, November 24, 2003, at 10:56 PM, Andrew Gaffney wrote: There is atleast 1 Perl program for downloading Yahoo mail out there. Okay, but let's say I want to /learn/ to do it - since I don't

RE: Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Bob Showalter
Jerry Rocteur wrote: ... I see this a lot of this on this list, Reply to the list, Reply to the list, Reply to the list. If it was the intention of the list manager for people to reply to the list then a reply would go to the list, however, a reply goes to the poster, not the list.

Count the no of times a script is called

2003-11-26 Thread Amit Phatak
I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in the PERL SCRIPT (not the fortran program) to have a record of how many times the script has been called. In simple words, i have a variable

Re: Reply to the list WAS Yahoo! Getter

2003-11-26 Thread Daniel Staal
--As off Wednesday, November 26, 2003 9:37 PM +0100, Jerry Rocteur is alleged to have said: I see this a lot of this on this list, Reply to the list, Reply to the list, Reply to the list. If it was the intention of the list manager for people to reply to the list then a reply would go to the

RE: Count the no of times a script is called

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Amit Phatak wrote: I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in the PERL SCRIPT (not the fortran program) to have a record of how many times the script has been called. In simple words, i

Glob and space in directory name

2003-11-26 Thread Boris Shor
Why does the following work (eg, give me an array filled with matching file names): @filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of underscore), the following does not: @filelist = glob(w:/stleg/Colorado/House 98/*.htm); Thanks!

Re: Count the no of times a script is called

2003-11-26 Thread Paul Johnson
On Wed, Nov 26, 2003 at 03:50:57PM -0500, Amit Phatak wrote: I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in the PERL SCRIPT (not the fortran program) to have a record of how many times the

perldoc perltoc WAS Using Benchmark module

2003-11-26 Thread Jerry Rocteur
On Tuesday, Nov 25, 2003, at 20:11 Europe/Brussels, drieux wrote: On Tuesday, Nov 25, 2003, at 10:29 US/Pacific, Paul Harwood wrote: [..] Perfect, thanks! [..] There are Clear and Compelling reasons why we thump on folks about 'perldoc' is your friend. For the life of me I can never remember

RE: Count the no of times a script is called

2003-11-26 Thread Amit Phatak
Implemented that. Not exaclty what you said but something very similar. Thanks for the help. Amit Original Message Follows From: Wagner, David --- Senior Programmer Analyst --- WGO [EMAIL PROTECTED] To: Amit Phatak [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: RE: Count the no of times

RE: Glob and space in directory name

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Boris Shor wrote: Why does the following work (eg, give me an array filled with matching file names): @filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of underscore), the following does not: @filelist =

Re: Glob and space in directory name

2003-11-26 Thread Daniel Staal
--As off Wednesday, November 26, 2003 3:58 PM -0500, Boris Shor is alleged to have said: Why does the following work (eg, give me an array filled with matching file names): @filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of

RE: Glob and space in directory name

2003-11-26 Thread Dan Muey
@filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of underscore), the following does not: The reason is you escaped the space in $MyLoc but not in /House 98/. If you escape the space in /House 98/ (IE /House\ 98/) like you

RE: Count the no of times a script is called

2003-11-26 Thread Tom Kinzer
drieux suggests: The alternative of course would be to have the 'perl code' start up as a daemon that handled requests on a socket, this way you would save the 'start up' overhead of invoking a new process each time through. Make sure your sys admin is OK with this one.

RE: Glob and space in directory name

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Dan Muey wrote: @filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of underscore), the following does not: The reason is you escaped the space in $MyLoc but not in /House 98/. If you escape the space in /House 98/ (IE /House\

RE: Glob and space in directory name

2003-11-26 Thread Dan Muey
Understood, but I know that the space within a directory name must have the \ otherwise it won't work, but if I try say ( for my testing purposes): $MyLoc = d:/00Common\ Perl/; @filelist = glob($MyLoc . pl0*.pl); The only thing that prints is d:/00Common and

Sockets and Daemonizing - was Re: Count the no of times a script is called

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 13:28 US/Pacific, Tom Kinzer wrote: drieux suggests: The alternative of course would be to have the 'perl code' start up as a daemon that handled requests on a socket, this way you would save the 'start up' overhead of invoking a new process each time through. Make

Re: factorial function

2003-11-26 Thread R. Joseph Newton
Rob Dixon wrote: B. Rothstein wrote: Does anyone have any suggestions on how to create an array to hold the value of 1000 factorial? Hi. Use Math::BigInt. The program below stores the first 1000 factorials into an array and prints out the thousandth, which is 2568 digits long. It also

Re: Glob and space in directory name

2003-11-26 Thread Steve Grazzini
David Wagner wrote: Dan Muey wrote: @filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of underscore), the following does not: The reason is you escaped the space in $MyLoc but not in /House 98/. Understood, but I know that the

Re: Openning Files Names with Embedded Spaces

2003-11-26 Thread R. Joseph Newton
Jeff Westman wrote: Hi, I am using Active Perl under Windoze 98. I am trying to open a file that has embedded spaces. I tried escaping the spaces as well, and that didn't work either. #! perl -w $file = c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle beach web

Re: perldoc perltoc WAS Using Benchmark module

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 12:21 US/Pacific, Jerry Rocteur wrote: [..] In as much as perldoc is your friend (Just like Google ;-) I find when you first use perldoc you get awfully confused as to which one to look for. I like to use perldoc perltoc and of course

Re: Testing Perl on a Web Page

2003-11-26 Thread R. Joseph Newton
Jeff Westman wrote: Dan Muey [EMAIL PROTECTED] wrote: Perfect! Exactly what I was looking for. I can deal with the paths/permissions/etc. I'm just trying to figure out how to get started. Oh, would I call this inside a web page with a SCRIPT tag or something? How do I point to the CGI

Re: Testing Perl on a Web Page

2003-11-26 Thread R. Joseph Newton
Jeff Westman wrote: Everything makes sense and I appreciate your answering me. Now, I assume the script has to be executable so I will need telnet access. I tried (instead) to use a perl script I have that does ftp (including site-chmod) -- assuming I can't telnet. Anyway, I use this

sendmail and attachment

2003-11-26 Thread perl
I have sendmail working ok with perl by calling sendmail (qmail-inject). However, now I need to send an attachment with it. Can someone tell me how this can be done? fw - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL

Re: Html::tokeparser::simple

2003-11-26 Thread R. Joseph Newton
Paul Kraus wrote: Someone want to show me how this module can help parse out html? I want to grap text between tdtext/td being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what the above th tag has in it. So if th

Re: sendmail and attachment

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 15:52 US/Pacific, [EMAIL PROTECTED] wrote: I have sendmail working ok with perl by calling sendmail (qmail-inject). However, now I need to send an attachment with it. Can someone tell me how this can be done? The CPAN is your friend, you might want to look at

Re: Glob and space in directory name

2003-11-26 Thread John W. Krahn
Boris Shor wrote: Why does the following work (eg, give me an array filled with matching file names): @filelist = glob(w:/stleg/Colorado/House_98/*.htm); And when I rename the directory to House 98 (space instead of underscore), the following does not: @filelist =