This comment is a lie:
#go to the next line unless the department is R&D. next unless$department eq $ARGV[0];
Unless you invoke this program with an argument of either R&D or HR, you'll see no output.
In reply to Re: Reading from filehandles in a loop and matching lines
by chromatic
in thread Reading from filehandles in a loop and matching lines
by Nathan_84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |