|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Ensuring Each If Statement Is Evaluatedby Anonymous Monk |
| on Oct 17, 2002 at 08:13 UTC ( #205953=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
Hi I currently have a script that reads the contents of an excel file into a hash, keyed on column titles. Each record (approx 20 column titles and one respective value for each) is then looped over and printed to a new file. The problem I am having is before I print each record to the new file, I want to execute a series of if statements over the record, so that if it matches *any* of the statements, the function is executed accordingly. Here is a code snippet:
The problem is, it never really checks the record against every single if statement. I can't work out how to fix this. Any pointers / advice is most welcome. Thanks
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||