RE: next if statement....

2004-03-18 Thread Bill Tribley
-Original Message- From: Greg Schiedler [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 2:16 PM To: [EMAIL PROTECTED] Subject: next if statement OK I'm trying to modify the code below to recognize an additional next if statement. I have included a snip of the file that th

FW: next if statement....

2004-03-18 Thread Bill Tribley
Oops, sorry for the empty reply. Greg, It is a common misconception that regular expressions act like text. If you are looking for this string: NAS-IP-Address = "192.168.0.1" you must escape all the special characters like this: NAS\-IP\-Address = \"192\.168\.0\.1\" Quotes do not work with

RE: Uploading file

2004-03-18 Thread Bill Tribley
Camilo, You are getting the uploaded filename/object, which you should treat as read-only, confused with the final destination on your server that you want to write to. What you want to do is to copy the file, not manipulate it. Ordinarily, the file is saved by the CGI object in the tmp directo

RE: Hash Assignment

2004-03-20 Thread Bill Tribley
I didn't think this could work, even in perl: my @[EMAIL PROTECTED] = @valuesarray; print Dumper @[EMAIL PROTECTED]; - And get syntax error at "@hash{"??? This works: my $idx=0; my $key; my %h

RE: General question about HTML form

2004-03-20 Thread Bill Tribley
Don't waste your time. There are only a very few modules that get elected for inclusion in the base Perl distro. As one of those modules, CGI is a secure, rock-solid, complete, mature, stable module written by a real Internet pro. You should be aware that if you use a different library make sure