I want produce this tag when read from 'file.txt'. Hello with using this perl script: #!/usr/bin/perl use CGI::Pretty qw(text:p); $c = new CGI; open(FILE, "file.txt"); while($line = ) { print $c->text:p({-'text:style-name'=>"Standard"},$line); } close FILE; but if use CGI::Pretty qw(text) it can do that, with produce Hello