in reply to I almost got it!

Are you forgetting the use CGI qw(:standard); or similar statement?