はい、-styleパラメータを使用して可能です。
例:print h1({-style=>'Color: red;'},'Welcome to Hell');
別の CSS ファイルを作成することもできます。以下は、個別のスタイルシート (style.css) とインライン CSS を使用する例です。
print start_html( -title=>'CGI with Style',
-style=>{-src=>'http://www.example.com/style/style.css',
-code=>$newStyle}
);
print h1('CGI with Style'),
p({-class=>'Tip'},
"Better read the cascading style sheet spec before playing with this!"),
span({-style=>'color: magenta'},
"Look Mom, no hands!",
p(),
"Whooo wee!"
);
print end_html;
出典: CGI.pm ドキュメント