> if you're trying to return 'true' unless $Bid_Amount contains a > non-digit, try this: > > return 1 unless $Bid_Amount =~ /\D/;
that works great. now I need to make sure that there are no embeded spaces. it does return TRUE if there is one or more spaces in there. I do know how to strip the leading & trailing as well as delete embeded spaces. that should be OK. FYI - of course this is all about validating user input. obviously I can't trust any user's input & have to validate it all: first name, last name, address, city, state, zip, credit card #, expiration date, user ID, password, etc. this is quite a task when you have an extensive input form. <grin> well, it is a good exercise. perhaps it might be a good topic for an article somewhere! I haven't found it, tho there probably is one around. thanks & cheers, Al Hospers CamberSoft, Inc. al<at>cambersoft<dot>com http://www.cambersoft.com Shockwave and Director development, CD-ROM, HTML, CGI scripting, and Graphic Design. A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]