"Tom McKellips" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When I run it on the command line I get no errors. But Still the
Javascript
> fails to execute in the browser if it is generated from PERL. If I put the
> very same javascript in it's own html page and call it with a br
When I run it on the command line I get no errors. But Still the Javascript
fails to execute in the browser if it is generated from PERL. If I put the
very same javascript in it's own html page and call it with a browser it
works perfect.
Do I have to escape javascript in perl some how?
On Thu
Thanks to all for replying to my questions.
Cheers always!!
Murli
zentara wrote:
On Wed, 26 Feb 2003 16:30:56 -0800, [EMAIL PROTECTED] (T. Murlidharan Nair)
wrote:
I have a cgi that need to accept only numeric values. ie +ve or -ve
real numbers.
Is there a quick and easy way to check this. I
just my 2 cents, I use these guys and they seem to be UNIX/LINUX friendly
and they allow many types of administration privileges.
www.he.net
ta-ta
frank
- Original Message -
From: "drieux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2
On Thursday, Feb 27, 2003, at 06:43 US/Pacific,
[EMAIL PROTECTED] wrote:
[..]
Bandwidth can be
metered, but I haven't seen hosters who meter processor time. Instead
they
make vague statements about removing inappropriately-greedy scripts.
[..]
Does anyone know how hosting companies really approa
on do, 27 feb 2003 16:57:59 GMT, Scot Robnett wrote:
> I have a script which is supposed to e-mail a user their
> username/password info as long as their e-mail address is in the
> database. The following code works if the address is in the database
> (it prints the approval page and sends the mai
Hello there! I am having difficulty downloading the Socket module to
make a script work. Below is the result of my attempt installing from
the command line via Perl;
Any suggestions?
Jeremiah
Trying with "/usr/bin/wget -O -" to get
ftp://ftp.loaded.net/pub/CPAN/modules/03modlist.data.gz
--12
Greetings;
I just started using XP, previously was using NT and now
whenever a perl cgi runs I get a "command prompt" window on
my screen. It generally just flashes on then disappears but
it is bothersome and distracting. Is there any way to stop
this?
Oh yes, I am running Apache and it happens w
I have a script which is supposed to e-mail a user their username/password
info as long as their e-mail address is in the database. The following code
works if the address is in the database (it prints the approval page and
sends the mail with the correct information), but if the address is -not- i
I dunno for sure, but if they wanted to measure the processor time they
could. It is also likely that they give CGI scripts a lower priority than
system functions, so a very greedy Perl script would end up being pretty
slow.
> they make vague statements about removing
> inappropriately-greedy scr
I write MacPerl at work to munge local files but use CGIs for my personal
website. The various hosting plans I have allow Perl and I have never had a
problem with them. I am starting a new, more CGI-intensive project and I'm
troubled by the question "how much PERL is too much." Bandwidth can be
met
I write MacPerl at work to munge local files, but use CGIs for my personal
website. The various hosting plans I have allow Perl, and I have never had
a problem with them, but I am starting a new, more CGI-intensive project
and I'm troubled by the vagueness that surrounds "how much PERL is too
much
on Thu, 27 Feb 2003 13:34:40 GMT, [EMAIL PROTECTED] (Zentara)
wrote:
> if (/\D/){ print "has nondigits\n" }
> if (/^\d+$/) { print "is a whole number\n" }
> if (/^-?\d+$/) { print "is an integer\n" }
> if (/^[+-]?\d+$/){ print "is a +/- integer\n" }
> if (/^-?\d+\.?\
Ok here is the subroutine code
sub open_html{
open(HTML,"<$rootdir/$FORM{'username'}.html");
@html = ;
close(HTML);
print <
Welcome $FORM{'username'} to the HTML Editor
-->
$logo_url $banner_url
Welcome
$FORM{'us
On Wed, 26 Feb 2003 19:00:18 -0800, [EMAIL PROTECTED] (Tom McKellips) wrote:
>Hi,
>
>How do I embed a java script inside a perl cgi? In my perl code I have a
Watch wordwrap :-) This javascript will give you the option
to view another cgi in a popup window. The printenv script is
at the bottom
On Wed, 26 Feb 2003 16:30:56 -0800, [EMAIL PROTECTED] (T. Murlidharan Nair)
wrote:
>I have a cgi that need to accept only numeric values. ie +ve or -ve
>real numbers.
>Is there a quick and easy way to check this. I was trying using a reg exp
>if(/^[-0-9][\.0-9]*/) {
> do something
>}
>
>but thi
If you want to check for real numbers, try something like the demo script
below. '-12.3' shows true while '--12.3' shows false.
HTH
Gary
#!/usr/bin/perl
my $fred='-12.3';
$fred+=1;
$fred-=1;
$resp= ($fred) ? "$fred is numeric\n" : "$fred is not numeric\n";
print $resp;
On Thursday 27 Feb
It was Wednesday, February 26, 2003 when Robert Wideman took the soap box, saying:
: >> I have a cgi that need to accept only numeric values. ie +ve or -ve
: >> real numbers.
: >> Is there a quick and easy way to check this. I was trying using a reg exp
: >> if(/^[-0-9][\.0-9]*/) {
: >> do somet
It was Wednesday, February 26, 2003 when T. Murlidharan Nair took the soap box, saying:
: I have a cgi that need to accept only numeric values. ie +ve or -ve
: real numbers.
: Is there a quick and easy way to check this. I was trying using a reg exp
: if(/^[-0-9][\.0-9]*/) {
: do something
: }
:
Jamie,
first of all I would read the file from top to bottom and then reverse my array to
change the order of the entries. Then on every line that you read back I would do a
comparison to check if I reached the piece of code you talked about that references
the end of the input.
I'd use
fore
on Thu, 27 Feb 2003 00:30:56 GMT, [EMAIL PROTECTED] (T. Murlidharan
Nair) wrote:
> I have a cgi that need to accept only numeric values. ie +ve or
> -ve real numbers.
> Is there a quick and easy way to check this.
This is a FAQ. See
perldoc -q float
--
feliex
--
To unsubscribe, e
21 matches
Mail list logo