in reply to print failing to output anything
Can you show us some sample input to this? If its not outputting anything, then clearly the input you're using isnt matching your regular expressions.
Also, 2 of those print statement lines are incorrect, you are missing a space between the 'OUTFILE' and the actual output, which won't work as you intend.
You should probably add a 'use warnings;' to the top of this, which will catch that error, and possibly some others as well.
C.
|
|---|