in reply to Re^2: I'm struggling with a function, and hoping for some insight -- not strictly Perl
in thread I'm struggling with a function, and hoping for some insight -- not strictly Perl

More on topic, I'm not a big fan of having validation like that on the client side (assuming it is client-side since it is js.) I'd much rather see it done server-side through an AJAX call if you don't want to cycle through a page reload. Can you move it there and write it in Perl? (For those who are picky, "Perl" is the language, "perl" is the program.)

It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
  • Comment on Re^3: I'm struggling with a function, and hoping for some insight -- not strictly Perl