Hi, I would like to know how to remove escape characters from strings.
I use PHP and it has a function called StipSlashes (), that does exactly
that, but I cannot seem to find anything similar in Perl. We have
existing CGi scripts that read input from a web form, and then
displays/mail the con
At 12:47 AM 10/30/2001, Bob Showalter wrote:
> > -Original Message-
> > From: John Griessen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 29, 2001 11:39 AM
> > To: David Kirol
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: mod_perl
> >
> >
> > Would one of you give me a little overview
> -Original Message-
> From: John Griessen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 11:39 AM
> To: David Kirol
> Cc: [EMAIL PROTECTED]
> Subject: Re: mod_perl
>
>
> Would one of you give me a little overview and point to best
> docs to read
> for mod_perl and CGI perl
--- [EMAIL PROTECTED] wrote:
> Curtis,
>
> What is the syntax for passing these values through the url?
> Greg
Greg,
Here's a little snippet borrowed from Randal Schwartz
(http://www.perlmonks.org/index.pl?node_id=80240):
use URI;
use HTML::Entities;
my $uri = URI->new("http://ba
Would one of you give me a little overview and point to best docs to read
for mod_perl and CGI perl.
For starters, I tried to put a script at my local apache web server root
directory, and the server just displays the contents as text...sounds like a
web server setting is wrong like an alias.
On Oct 26, 2001 at 01:48 +0200, [EMAIL PROTECTED] took the soap box and
proclaimed:
: Hi to All,
: I' d like to create a table in which put the data read from a database
: using Perl Object-Oriented language.
: Now I' ve created this functional table, and I' d like to re-write it in
: object-orie
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 26, 2001 9:37 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Faking form variables
>
>
> Curtis,
>
> What is the syntax for passing these values through the url?
> Greg
_brian_d_foy wrote:
> DOCUMENT_ROOT is not necessarily where CGI scripts go. instead
> of everyone suggesting that the poster guess by running simple
> minded programs, suggest that the poster ask the system
> administrator, or read the server configuration file. :)
Well... Good point. We were
"Brett W. McCoy" wrote:
>
> On Thu, 25 Oct 2001, RaFaL Pocztarski wrote:
>
> > You can always use http://www.perldoc.com/ but it's hard to believe that
> > any version of perl comes without perldoc, however I don't know MacPerl
> > at all. Try to find any info about perldoc in MacPerl docs or we
Shannon Murdoch wrote:
>
> Oh, I only just found there was more beyond the first quoted block of text!
> I'll look in to it now.
That's because most of people here can't quote at all. There is always
more text below any quoted text im my messages. Why would I quote
anything if I did't want to co
Nate Brunson wrote:
>
> when perl reads in $ENV{'REMOTE_ADDR'} is it a number or a string?
Environment variables are always strings (which may contain numbers of
course).
> were $blah is a string. should i convert $blah to a number,
> or $ipaddy to a string.. or am i just messed up..
When you
Troy May wrote:
>
> I'm trying to use the require command with perl but when i want to put a
> variable within the require statement it always errors out. The code looks
> something like this.
>
> require "/absolute/path/to/files/$FORM{'id'}/options.txt";
>
> Is this not possible? thanx for the
Shannon Murdoch wrote:
> >> foreach (sort keys %params) { print "\t$params{$_}" }
> >
> > The same way. $_ is the key for the hash element in the while loop.
>
> I want a list of keys, not their values though.
You have it already in your code:
sort keys %params
is a sorted list of keys in
Hi all,
I'm having trouble with a cgi script, the main problem is the snippet below,
is there anything obvious wrong with it?
if (quotemeta $url =~ /$bad/i) {
$error = '1';
}
The rest of the code is posted below.
When I run it (telnet) I get the following error messages:
Use of uninitialized
14 matches
Mail list logo