Re: use, require, do... which is appropriate?

2002-02-12 Thread Brett W. McCoy
On Tue, 12 Feb 2002, W P wrote: > my problem is simple. i have a number of scripts on my server, and i > would like all of them to initially run a function defined by me. > however, it would be burdensome to write that function over for every > script. creating a custom module, however, doesn'

use, require, do... which is appropriate?

2002-02-12 Thread W P
my problem is simple. i have a number of scripts on my server, and i would like all of them to initially run a function defined by me. however, it would be burdensome to write that function over for every script. creating a custom module, however, doesn't really seem that much easier. i hav

Session.pl

2002-02-12 Thread Margarita Perez
Hi, I am using Sesion.pm for the first time. I running Windows 2000 and using Active Perl. Does Session.pm work in this environment. I am using trying to get an example to work from http://jan.netcomp.monash.edu.au/ecommerce/perl_session.html and the wierd thing is that I can run the first script

Re: Perl parameter in html-tag

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 22:54:36 +0100 (MET), Terje Bremnes <[EMAIL PROTECTED]> wrote: > Any ideas here? Do I need to split the $word into an array (vector) in order > to separate URL-links? That's the idea, though the backtick operator can be used in list context, like this: #!/usr/bin/perl -Tw u

Perl parameter in html-tag

2002-02-12 Thread Terje Bremnes
Hi, maybe this is more of an html-problem, but since perl is often used in connection to html I hope someone can help me. I have made a simple search script that takes its input search string from a web-form. It produces a webpage with a list of the files on the search area in which the string w

OpenSRS

2002-02-12 Thread Scott Lutz
Has anyone customized the configuration of OpenSRS Perl client? I am using the flow of 1. Gather all the domains to be registered and the registration info 2. Calculate all of the applicable taxes that are to be paid in Canada, since we are in Canada 3. Connect to the third party payment processo

Re: Counter in Perl

2002-02-12 Thread Sir Douglas Cook
I am very new to perl, Ok, I know nothing. Although I am wondering if you did something like if (Remote_host NotEqual LastRemote_host) { LastRemote_host==env{remote_host}; Counter++; Open counter_File; Update counter_File(Counter,,, blah i have no idea);

RE: Counter in Perl

2002-02-12 Thread Marty Landman
At 09:45 AM 2/12/02 -0500, Bob Showalter wrote: > > I made a counter in Perl and if a visitor refreshes the page, > > the counter > > increases. > > Can I modify the Perl script so that won't happend? > >Give him a cookie that expires after a while (a day maybe?). >If he sends the cookie, don't i

Re: Malformed Header

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 12:58:23 +, Stephen.Hurley <[EMAIL PROTECTED]> wrote: > Hi, > Not sure if this is entirely a perl problem, but it is certainly > related. I made some minor changes to one of my CGI scripts (to get > the page to include the current date), and Apache started to give me a > 50

RE: Counter in Perl

2002-02-12 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 12, 2002 11:24 AM > To: [EMAIL PROTECTED] > Subject: Counter in Perl > > > Hi all, > I made a counter in Perl and if a visitor refreshes the page, > the counter > increases. > Can I modify

RE: Windows Text editor

2002-02-12 Thread Michael Dreksler
/* There is nothing like a discussion on text editors to get the emails flowing :-) */ I have been using Text pad for the past few months - it is refreshingly lightweight and has masses of user-written add-ons available for download. It does syntax highlighting for 40+ languages, multilingual, s

Counter in Perl

2002-02-12 Thread Octavian Rasnita
Hi all, I made a counter in Perl and if a visitor refreshes the page, the counter increases. Can I modify the Perl script so that won't happend? Thanks. Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @y

Re: perl and threads for webstress purpose

2002-02-12 Thread Randal L. Schwartz
> "Thierry" == Thierry Forest <[EMAIL PROTECTED]> writes: Thierry> I create the request without too much trouble but the load is not Thierry> enought .. Thierry> So i was thinking t use the threads to load up the client and the server Thierry> , but Threads are really obscur for me , i don't

RE: Malformed Header

2002-02-12 Thread Al Hospers
do you have an end_header() tag as well? > what's generated... > > "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd";> > http://www.w3.org/1999/xhtml"; lang="en-US"> > > how I'm generating it... > print start_html(-title=>"Events"); > > what Apache's error log says... > [Tue Feb

Malformed Header

2002-02-12 Thread Stephen.Hurley
Hi, Not sure if this is entirely a perl problem, but it is certainly related. I made some minor changes to one of my CGI scripts (to get the page to include the current date), and Apache started to give me a 500 error on it. The syntax of the script is perfect, and I'm using CGI.pm to generate the

RE: perl and threads for webstress purpose

2002-02-12 Thread Michael Dreksler
Eric P. wrote > I don't have the URL right now, but I recall that Lincoln Stien wrote an > excellent article in "Web Techniques" about using perl to stress test a > web server. One warning, however: Lincoln's script requires two machines - > a web server and a client to test the web server. http: