forcing a script to finish in a subroutine

2002-03-05 Thread W P
i'm making my own (hopefully informative) error pages for my site. i have defined a subroutine pr_error which takes the error(s) as input and outputs an HTML page. how can i make it go to the end of the script ( __END__ ) on those errors (which will not necessarily be fatal). for example: my

Re: How can i put the html code in my cgi?!?

2002-03-04 Thread W P
all about CGI.pm and how to use it: http://perldoc.com/perl5.6.1/lib/CGI.html >> But i don't know how to do it with the new module CGI.pm , anyone knows that?!? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using -T (taint) in perl scripts on Win32

2002-03-01 Thread W P
Blank>> produces valid HTML with no errors. so you're saying it is printing a valid header? like this: Content-type: text/html HTML STUFF HERE -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Escaping special characters for regular expressions

2002-02-28 Thread W P
i don't want to just escape those characters. they were merely examples. i was hoping maybe there was some built-in way to escape ALL the characters that mean anything to regular expressions. it just seemed like a lot of work to put a \ before all the characters that regular expressions recogni

Escaping special characters for regular expressions

2002-02-27 Thread W P
I have a CGI script which takes two strings. It searches for the first string in a file, replacing it with the second one. This file isn't really important, more for fun, so I'm not too worried about people deleting the whole file if they actually type out the contents as the first string. Ho

Re: lock file, flock or what?

2002-02-27 Thread W P
http://www.perldoc.com/perl5.6.1/pod/func/flock.html From: "zaka rias" <[EMAIL PROTECTED]> Subject: lock file, flock or what? > i wanna know what is perl command to lock a file, > honestly i dont understand what is that mean with lock > a file, im on linux, if i want to lock my file, i'll > ju

Re: Things that make you go hmmmmmmmm

2002-02-27 Thread W P
> > What typically causes the following type of error in a CGI? > --- > Use of uninitialized value in concatenation (.) > at D:\inetpub\whatever\census\myscript.cgi line 272. > --- I d

Re: What is the value of @_4_[0], and $return_me? (see below)

2002-02-20 Thread W P
also, it seems you might have left out a comma between the 'a' and 1 in this: >>my @arr = (0, 'a' 1, 'b'); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 'Internal Server Error' with module

2002-02-16 Thread W P
i know this is very bad form, but i think i may have pinpointed the problem. i decided to put the "use CGI::Carp" declaration before the "use" declaration for my module, and sure enough the browser fed me information. it claims that the module wasn't found in any directory in @INC, but i could hav

'Internal Server Error' with module

2002-02-16 Thread W P
I posted a question here not long ago about whether creating a module was the best solution to a problem i had, and the response was that it was the best solution. so i created a little module. i have tested it via telnet froml, and it works fine, but when i try to 'use' it in scripts run via th

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

Re: interactive tutorials on web

2001-11-16 Thread W P
as far as CGI.pm, the documentation at http://perldoc.com/perl5.6.1/lib/CGI.html is almost in the form of a tutorial, but the best source of knowledge that i've found is CGI Programming with Perl from O'Reilly. if you can, spending the $35 on it is worth every penny. -- To unsubscribe, e-mail:

Re: why is perl better then PHP

2001-11-16 Thread W P
> dont ever say "death" to any technology,we should learn and try them > and find out which suit our interests and respect other developrs > who are interested in the things we dont like. i believe the sentiment was probably more "death to the technologies that microsoft uses to attempt to domin