in reply to Why NO output???
try adding a final else clauseif (/^PER\s*$/) ... elsif (/^EMP\s*$/) ...
briefly looking your code over, shouldn't the regexes be something like/^"PER"/? the ones you've got now seem to expect only PER and any number of spaces or EMP and any number of spaces. I'd also be wary of using DATA as a file handle, because it's special happy fun magic in perl. See documentation as to why, or look for __DATA__ in the monastery.else { print "neither PER or EMP matched!\n value is $_\n" }
|
|---|