http://www.perlmonks.org?node_id=626908


in reply to Re^2: Need help with Validation script
in thread Need help with Validation script

I'm not sure exactly what feed back you are looking for on this code, but I have a couple of comments:

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'

Replies are listed 'Best First'.
Re^4: Need help with Validation script
by ssmith001 (Initiate) on Jul 16, 2007 at 20:13 UTC
    I guess what I was looking for was some help with a simple routine to check a single column P_DLRUOM to see if it's value is one of ("EACH","FEET","FT","IN","UNIT"). If the user inputted value for P_DLRUOM = "EACH", it's valid and then I want to run off an build the SQL statement to do the update. I can take care of that part later. Since there will be numerous column to check eventually, it sounds like to the best way would be to use as hash as suggested above.