hello all-
just a question concerning convention and accepted syntax.

i am writing a script that accepts data from a html form. i am running it
against a parsing subroutine to extract the data into a hash. however, i'd
now like to start putting some of these values into if/else statements to
start certain processes based on the form values.

up until now i have been doing:

  $scalar = $hash{key}

and then doing

  if ( $scalar == "1" ) {

i know that this will work, however its a bit tedious for large forms. i
am not asking someone to do my homework for me, i am sure that a foreach
statement can be written up to do what i am asking. my question is more
concerning good etiquette and what i should expect to see in other
scripts, or what others would expect to see in mine should i distribute
them through the web.

thanks! -charles

Reply via email to