How do embed javascript

2003-02-26 Thread Tom McKellips
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

RE: checking if its a real number

2003-02-26 Thread Robert Wideman
>> 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

checking if its a real number

2003-02-26 Thread T. Murlidharan Nair
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

RE: parsing text files ...

2003-02-26 Thread Hanson, Rob
> 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

parsing text files ...

2003-02-26 Thread Jamie Bridges
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