RE: start http request and move on

2004-11-05 Thread NYIMI Jose \(BMB\)
> -Original Message- > From: JupiterHost.Net [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 03, 2004 10:23 PM > To: [EMAIL PROTECTED] > Subject: start http request and move on > > > Hey group, > > Not sure how I'd go about doing a url (via LWP probably) but > not wait for it t

RE: Mod_Perl Target Headers

2004-11-05 Thread Thomas Bätzler
James Taylor <[EMAIL PROTECTED]> asked: > Should be a pretty simple question, looking for an option in > header_out to target a frame. [...] > Was hoping I could do something like: > $r->header_out('Target'=>'_top'); > > but that doesn't seem to work. Any suggestions? The destination window for

more cookies in perl and asp

2004-11-05 Thread A Taylor
Thanks for your reply, I am going to re-write my problem; I am creating a cookie in perl script: $usrID = createUsrID(); ## create cookie my $cookie = new CGI::Cookie(-name=>'usrID',-value=>$usrID); ## send cookie print "Set-Cookie: $cookie\n"; and then I am trying to recall that cookie in a

Installing DBD::mysql

2004-11-05 Thread Octavian Rasnita
Hi, I have tried to install the module DBD::mysql but without success. I have tried 2 ways: perl -MCPAN -e 'install DBD::mysql;' And I have also tried downloading the archive from search.cpan.org, then using perl Makefile.PL, make,... After trying to install it using the CPAN module or after t

RE: more cookies in perl and asp

2004-11-05 Thread Charles K. Clarkson
A Taylor <[EMAIL PROTECTED]> wrote: : Thanks for your reply, I am going to re-write my problem; : I am creating a cookie in perl script: : : $usrID = createUsrID(); : ## create cookie : my $cookie = new CGI::Cookie(-name=>'usrID',-value=>$usrID); A cookie without an expiration is a sessi

Spider-friendly URLs in Perl

2004-11-05 Thread GEV_256
Greetings, There is CGI script /cgi-bin/some.pl. Some user input this address in browser. But it's needed when he inputs it, web-server will response page generated by another script - /cgi-bin/any.pl. How to make it? P. S. Sorry for my poor English :) -- Sincerely yours, Eugene Geraschenko ak

Re: Spider-friendly URLs in Perl

2004-11-05 Thread Ing. Branislav Gerzo
GEV_256 [G2], on Friday, November 5, 2004 at 17:52 (+0600) thinks about: G2> There is CGI script /cgi-bin/some.pl. Some user input this address in G2> browser. But it's needed when he inputs it, web-server will response G2> page generated by another script - /cgi-bin/any.pl. G2> How to make it? u

How do I set POST vars from a perl script

2004-11-05 Thread A Taylor
Hi all, I am trying to set some HTTP header variables in a perl script that I can then pick up in another script. I want to create a situation as if some one had POSTed variables from a form. I then want to pick these variables up in an .asp script. I have tried picking up cookies with an asp scri

XML::DOM

2004-11-05 Thread E.Horn
once again! how do i get the text between two tags by parsing with XML::DOM my programm #!/xprog/bin/perl -w use XML::DOM; my $file = 'xml'; my $parser = XML::DOM::Parser->new(); my $doc = $parser->parsefile($file); my $nodes = $doc->getElementsByTagName('perl'); my $n = $nodes->getLengt

Buidling stable.tar.gz on Unix as non-root

2004-11-05 Thread jose isaias cabrera
Greetings! I am trying to build the latest stable of perl on a sun4 system as a normal user. Has anyone out there built perl as an user of a Unix system? By a user I mean not having root access. I want to build perl in my own directory. I am able to do configure to make and even start the

Re: Client-server with perl?(need some useful progs for squid proxy)

2004-11-05 Thread JupiterHost.Net
Harold Castro wrote: Thanks a lot! I will look into this right away. see ya! NP, I hope it works out :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
Randal has written an excellent column and shown how to deal with such needs. Have a look to http://www.stonehenge.com/merlyn/LinuxMag/col39.html Thanks Jose, and Randal too :), very close indeed the only difference is I don't want the user to wait at all, just submit the form, they see the confi

RE: How do I set POST vars from a perl script

2004-11-05 Thread Thomas Bätzler
A Taylor <[EMAIL PROTECTED]> asked: > I am trying to set some HTTP header variables in a perl > script that I can then pick up in another script. > I want to create a situation as if some one had POSTed > variables from a form. I then want to pick these variables up > in an .asp script. You can

RE: start http request and move on

2004-11-05 Thread Bob Showalter
JupiterHost.Net wrote: > I don't want the user to wait > at all, just submit the form, they see the confirmation and close > their browser and the fork() finished in its own sweet time on the > server. Use something like the following: #!/usr/bin/perl use strict; use CGI ':standard'; us

RE: start http request and move on

2004-11-05 Thread Murphy, Ged (Bolton)
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 15:14 To: [EMAIL PROTECTED] Subject: Re: start http request and move on Thanks Jose, and Randal too :), very close indeed the only difference is I don't want the user to wait at all, just submit

Fwd: installing perl

2004-11-05 Thread Stephan M. Ellis
-- Forwarded Message -- Subject: installing perl Date: Friday 05 November 2004 11:26 am From: "Stephan M. Ellis" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Hi, I am developing a linux based router os, and it is coming along nicely. The only thing I can think of to make it bette

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
A very shoddy way of doing it, but you could put what you want to do in another script, call system() and place it in the background so you original script doesn't wait for it to return. . system "perl script.pl any arguments &"; . I assume this would work, but am not 100% sure without try

Re: Buidling stable.tar.gz on Unix as non-root

2004-11-05 Thread Chasecreek Systemhouse
On Fri, 05 Nov 2004 10:03:29 -0500, jose isaias cabrera <[EMAIL PROTECTED]> wrote: > > Greetings! > > I am trying to build the latest stable of perl on a sun4 system as a normal user. > Has anyone out there built perl as an user of a Unix system? By a user I mean not > having root access. I

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
Bob Showalter wrote: JupiterHost.Net wrote: I don't want the user to wait at all, just submit the form, they see the confirmation and close their browser and the fork() finished in its own sweet time on the server. Use something like the following: #!/usr/bin/perl use strict; use CGI ':sta

RE: start http request and move on

2004-11-05 Thread Bob Showalter
JupiterHost.Net wrote: > Bob Showalter wrote: ... > > Use something like the following: ... > Thanks Bob, That works great! Now the next step is to play with that > in a peristent environment without killing the persistent process > with the exit() Perhapst the system + & will do better in a persi

Re: start http request and move on

2004-11-05 Thread Gunnar Hjalmarsson
Bob Showalter wrote: If you're running under Apache::Registry though, calling exit is OK. If I have understood it correctly, it's not OK if Perl is older than 5.6. Therefore I'm using this sub: sub myexit { if ($ENV{MOD_PERL}) { if ($] < 5.006) { require A

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
You don't need to call exit if you just put the other stuff in an else {} block so the parent doesn't execute it. If you're running under Apache::Registry though, calling exit is OK. Perfect, the else {} works great! I'll need to read up on fork and all that so I can really get it :) Thanks so m

RE: more cookies in perl and asp

2004-11-05 Thread Jenda Krynicky
From: "Charles K. Clarkson" <[EMAIL PROTECTED]> > A Taylor <[EMAIL PROTECTED]> wrote: > : Thanks for your reply, I am going to re-write my problem; > : I am creating a cookie in perl script: > : > : $usrID = createUsrID(); > : ## create cookie > : my $cookie = new CGI::Cookie(-name=>'usrID',-va

RE : start http request and move on

2004-11-05 Thread Jose Nyimi
> -Message d'origine- > De : Bob Showalter [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 5 novembre 2004 19:40 > À : 'JupiterHost.Net'; [EMAIL PROTECTED] > Objet : RE: start http request and move on > > JupiterHost.Net wrote: > > Bob Showalter wrote: > ... > > > Use something like the fo

Re: RE : start http request and move on

2004-11-05 Thread JupiterHost.Net
Nice approach, I have learned today an easy to do it :) Though care should be taken to not fork many *uncontrolled* childs. Could you elaborate what uncontrolled children are specifically and what should be avoided? (In context of this thread of course not the little humans running around like c

RE: RE : start http request and move on

2004-11-05 Thread Larsen, Errin M HMMA/IT
> -Original Message- > From: JupiterHost.Net [mailto:[EMAIL PROTECTED] > Sent: Friday, November 05, 2004 3:08 PM > To: [EMAIL PROTECTED] > Cc: Jose Nyimi > Subject: Re: RE : start http request and move on > > > > > Nice approach, I have learned today an easy to do it :) Though care >

socket server

2004-11-05 Thread Rob Genovesi
Hi All, I'm looking to write a basic Perl server that will communicate via TCP. I'd also like the program to be able to do other things while it waits for client connections. Can anyone recommend that best way to do this? For example: A perl daemon that does some polling every few seconds and

rss remove item

2004-11-05 Thread Rolland, Susie (DIS)
Hello, I am a true Perl beginner ... I can create an rss file using XML::RSS and now I need a way to remove an .. by passing in the value ... any help on what to read about would be appreciated Susan Rolland 902-2988 Department of Information Services -- To unsubscribe, e-mail: [EMAIL PRO

Re: RE : start http request and move on

2004-11-05 Thread JupiterHost.Net
Hi, Hello :) I've been lurking on this thread for a bit, and now that you've jumped to children and fork and related topics I'll chime in! I found a lot of useful information about this sort of thing in "perldoc perlipc". Check out the stuff about Daemons and the REAPER subroutine in that doc.

Re: socket server

2004-11-05 Thread Owen Cook
On Fri, 5 Nov 2004, Rob Genovesi wrote: > > I'm looking to write a basic Perl server that will communicate via > TCP. I'd also like the program to be able to do other things while it > waits for client connections. Can anyone recommend that best way to do this? > > For example: A perl daem

RE: RE : start http request and move on

2004-11-05 Thread Christopher Maujean
On Fri, 2004-11-05 at 13:39, Larsen, Errin M HMMA/IT wrote: > > -Original Message- > > From: JupiterHost.Net [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 05, 2004 3:08 PM > > To: [EMAIL PROTECTED] > > Cc: Jose Nyimi > > Subject: Re: RE : start http request and move on > > > > > >

RE sites

2004-11-05 Thread Chasecreek Systemhouse
FYI - http://etext.lib.virginia.edu/helpsheets/regex.html http://gnosis.cx/publish/programming/regular_expressions.html Enjoy! -- WC -Sx- Jones http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How do I set POST vars from a perl script

2004-11-05 Thread Charles K. Clarkson
A Taylor <[EMAIL PROTECTED]> wrote: : Hi all, : I am trying to set some HTTP header variables in a perl : script that I can : then pick up in another script. : I want to create a situation as if some one had POSTed : variables from a form. Fields in a form are not placed in the HTTP headers o

how to pass array and varaible

2004-11-05 Thread Anish Kumar K.
Hi I want to pass a array and and a varaible to a subroutine and then some processing will be done at the subtroutine and the array should be returnedPlease help me in trying to figure out... Thanks Anish

Re: how to pass array and varaible

2004-11-05 Thread Edward Wijaya
sub mysub { my ($var, @array) = @_; my @new_array = (); #do sth to @array or $var; return @new_array; } read - perldoc perlsub Regards, Edward WIJAYA On Sat, 6 Nov 2004 12:48:26 +0530, Anish Kumar K. <[EMAIL PROTECTED]> wrote: Hi I want to pass a array and and a varaibl

Re: how to pass array and varaible

2004-11-05 Thread Anish Kumar K.
#!/usr/bin/perl my @array=("First","second","third"); my $menuStr="im"; @tempArray=change(@array,$menuStr); foreach (@tempArray) { print "\nElement: $_\n"; } sub change { my (@nwt,$var)[EMAIL PROTECTED]; print "The Varaible is $var \n\n"; pr