Re: Ignorance is NOT bliss, help!
[email protected] ((Randal L. Schwartz))
| Newsgroups | perl.recdescent |
|---|---|
| Organization | Stonehenge Consulting Services; Portland, Oregon, USA |
| Message-ID | <[email protected]> |
>>>>> "Ken" == Ken Lacrosse <[email protected]> writes: Ken> Could anyone relieve my ignorance and clue me in as to why the following grammar Ken> won't parse the second test line (0810-0850) when the first line (0800-0850) Ken> parses fine? .. Ken> return "$item[1]$item[3] - $item[5]$item[7]" Ken> if ($item[1] > 0 and $item[1] < 24 and $item[5] > 0 and Ken> $item[5] < 24 and Ken> $item[3] > 0 and $item[3] < 60 and $item[7] > 0 and Ken> $item[7] < 60) It's the ol' "> is not >=" problem. :) >=0 will do what you want. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!