in reply to Cant help print key word

"Not working" isn't an error report. As advised in answers to some of your previous questions (e.g. No Such File or Directory Error) you could add use strict; use warnings; and start debugging from there to find out what is going wrong and why.