wanadlan has asked for the wisdom of the Perl Monks concerning the following question:
I want produce this tag when read from 'file.txt'. <text:p text:style-name="Standard"> Hello </text:p> with using this perl script: #!/usr/bin/perl use CGI::Pretty qw(text:p); $c = new CGI; open(FILE, "file.txt"); while($line = <FILE>) { print $c->text:p({-'text:style-name'=>"Standard"},$line); } close FILE; but if use CGI::Pretty qw(text) it can do that, with produce <text text:style-name="Standard"> Hello </text>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Problem with CGI::Pretty
by jeffa (Bishop) on Feb 05, 2003 at 15:12 UTC | |
|
Re: Problem with CGI::Pretty
by theorbtwo (Prior) on Feb 05, 2003 at 12:30 UTC | |
|
Re: Problem with CGI::Pretty
by PodMaster (Abbot) on Feb 05, 2003 at 12:23 UTC |