in reply to Isn't there a print line function?

I'm not sure I understand this question. Assuming that you want to print a line if it contains "whatever", then if the line is in $_, you can just "print". E.g.
$_ = "this is a line containing whatever\n"; print if /whatever/;