Hi,
I have an if-statement for checking the value of a variable :
if (!($icname =~ /^[A-Za-z0-9_.]+$/)) {
print "Sorry your IP-Block name cannot contain special
characters${submit}";
$exit ="on";
}
Is there a way to find out which character did not meet the requirements ?
I wo
On Monday, May 20, 2002, at 07:36 , John Brooking wrote:
> --- drieux <[EMAIL PROTECTED]> wrote:
>> use CGI qw/:standard/;
>>
>> for a specific illustration cf:
>>
> http://www.wetware.com/drieux/pbl/cgi/basicPagePopper.txt
[..]
> The code I included in the message was just
> my test scrip
On Sunday, May 19, 2002, at 09:58 , Octavian Rasnita wrote:
> I don't know the map function.
>
> Teddy,
> [EMAIL PROTECTED]
I think the short answer is:
this is a good thing for the moment.
perldoc -f map
if that does the 'fast make of a hash or list' from a list
that works fo
Hi all,
I know how to open and print an html or text document on the screen if the
file is on my site and I know the real path to the file.
I want to open and print a document on the screen but it is not on my site
and of course, I don't know the real path to that file.
I've seen that I need the
I don't know the map function.
Teddy,
[EMAIL PROTECTED]
- Original Message -
From: "drieux" <[EMAIL PROTECTED]>
To: "cgi cgi-list" <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 7:25 AM
Subject: Re: Counting the elements of an array
On Sunday, May 19, 2002, at 06:29 , Octavian Rasnita
--- drieux <[EMAIL PROTECTED]> wrote:
>
> maybe I am missing something here - but isn't
> this something you would want to be using say
>
> use CGI qw/:standard/;
>
> for a specific illustration cf:
>
http://www.wetware.com/drieux/pbl/cgi/basicPagePopper.txt
Either you're missing somethi
--- Jake <[EMAIL PROTECTED]>
wrote:
>
> On my machine (linux) if I dump textarea input to a
> ascii text file like so...
>
> my $ta = $query->param('myTextArea');
> print outFile $ta;
>
> newlines are saved as cr/lf which corresponds to the
> hex characters 0D and 0A.
>
> ... [snip stuff abou
On my machine (linux) if I dump textarea input to a ascii text file like so...
my $ta = $query->param('myTextArea');
print outFile $ta;
newlines are saved as cr/lf which corresponds to the hex characters 0D and 0A.
If I look at this file with some text editors it will look like ^M . but it's
Bob Showalter wrote:
> > -Original Message-
> > From: drieux [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 20, 2002 3:01 PM
> > To: cgi cgi-list
> > Subject: Re: Counting the elements of an array
> >
> >
> >
> > On Monday, May 20, 2002, at 08:13 , Bob Showalter wrote:
> > >> -Ori
True, but if I am trying to repeatedly translate in
both directions, won't this cause the newlines to
grow? For example (P tags shown as [p] here):
TEXTAREA sends "Para 1.\nPara 2.\nPara 3."
I store: "Para 1.\n[p]Para 2.\n[p]Para 3."
Translated back for TEXTAREA next time:
"Para 1.
On Monday, May 20, 2002, at 10:51 , John Brooking wrote:
>
> Thanks in advance for any help.
>
> - John
maybe I am missing something here - but isn't
this something you would want to be using say
use CGI qw/:standard/;
for a specific illustration cf:
http://www.wetware.com/dr
> -Original Message-
> From: drieux [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 3:01 PM
> To: cgi cgi-list
> Subject: Re: Counting the elements of an array
>
>
>
> On Monday, May 20, 2002, at 08:13 , Bob Showalter wrote:
> >> -Original Message-
> >> From: drieux [mai
On Monday 20 May 2002 01:51 pm, John Brooking wrote:
> Hello, all,
> has worked so far. Everything I've tried has (1) added
> the P tag but not removed the newline, and/or (2) also
the first case should work, after all, the browser will ignore newline and
carriage return characters, so
On Monday, May 20, 2002, at 08:13 , Bob Showalter wrote:
>> -Original Message-
>> From: drieux [mailto:[EMAIL PROTECTED]]
>>
>>#
>>#
>>sub haveMap {
>> my (@list) = @_;
>> my %seen = ();
>>
>> map {$seen{$_}++} @list;
>
> So, is the old s
On Monday, May 20, 2002, at 03:43 , Shawn wrote:
> To get just the Auth...
>
> (my $var2=$var)=~s/^.*Proxy-Authorization: Basic //ms;
> $var2=~s/\n.*$//ms;
>
> This is unetested...
actually i just tested it - works well.
> Shawn
>
>> my $var = m/Proxy-Authorization:.+/; #should return true
>>
>
Hello, all,
I'm trying to translate the value entered in a
TEXTAREA tag to one or more HTML paragraphs. That
means any newlines entered into the text box need to
be turned into P tags by the script. But I'm having
trouble coming up with a regex to do this. I know I
need multiline mode, so I've
> -Original Message-
> From: drieux [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 19, 2002 11:47 AM
> To: cgi
> Subject: Re: Counting the elements of an array
>
> ...
> ok, so my OCD is benchmarking - but I would like to offer
> what I think may be a bit quicker - if speed is your Need..
Is there a simple test to see if a mail program, or any form using Perl CGI for that
fact, is a security risk?
thanks!
>>> Mark Bergeron <[EMAIL PROTECTED]> 05/15/02 10:21PM >>>
Hey, this is cool. It's about time to update things around the universe.
-Original Message-
From: "Camilo Go
Hey ChaoZ,
> my $var="
> GET http://us.a1.yimg.com/us.yimg.com/i/mntl/lnch/britney.jpg HTTP/1.0
> Host: us.a1.yimg.com
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126
> Netscape6/6.2.1
> Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9,
>
Hi all,
would like to consult the perl gurus on the below:-
my $var="
GET http://us.a1.yimg.com/us.yimg.com/i/mntl/lnch/britney.jpg HTTP/1.0
Host: us.a1.yimg.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126
Netscape6/6.2.1
Accept: text/xml, application/xml, appli
20 matches
Mail list logo