You didn't check whether open succeeded so you didn't spot that the $input_file is incorrect. See the Basic Debugging Checklist for more like this.
In reply to Re: Working on pattern matching
by hippo
in thread Working on pattern matching
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |