Hi,
How do I embed a java script inside a perl cgi? In my perl code I have a
print < but none of it ever
executes. I call it with a web browswer and view the source and it looks
correct. Also I know that the javascript itself works fine. I have placed it
in a html page of it's own and it has r
>> 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 this breaks when the number is say --75.4 It still accepts if it
>> has
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 this breaks when the number is say --75.4 It still accepts if it
has two - signs.
Thanks for
> is there a way to tell the program to
> "read until you see this line and
> place everything you have read up to
> that line into @array"
# yes.
my @lines = ();
open IN, "somefile" or die $!;
while () {
last if /some_match/;
pusdh @lines, $_;
}
close IN;
> could this start at the bottom of
i have admittedly been lurking for awhile on this list b/c all of your
advice has been helpful as reference in building some of my code. i
haven't seen anything since i joined the list which could help me with the
following problem so i hoped maybe you guys could address it for me.
what i have is