<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Oi Renato, tudo bem meu codigo ficou assim:<BR>
arquivo teste.pl<BR>
#!/usr/bin/perl<BR>use strict;<BR>use warnings;<BR>use mod::config;<BR>print "Content-type: text/html\n\n";<BR>my $test = new mod::config;<BR>$test-&gt;nome({<BR>&nbsp;&nbsp;&nbsp; nome =&gt; 'Lucas',<BR>&nbsp;&nbsp;&nbsp; idade =&gt; 23,<BR>&nbsp;&nbsp;&nbsp; cidade =&gt; 'Bragança Paulista',<BR>});<BR>$test-&gt;imprimir;<BR>
&nbsp;<BR>
arquivo mod/config.pm<BR>
package mod::config;<BR>use strict;<BR>use warnings;<BR>use Moose;<BR>has 'nome' =&gt; (is =&gt; 'rw');<BR>sub imprimir {<BR>&nbsp;&nbsp;&nbsp; my $self = shift;<BR>&nbsp;&nbsp;&nbsp; while(my($indice, $valor) = each(%{$self-&gt;nome})){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print $indice . ' = ' . $valor . '&lt;br /&gt;';<BR>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp; <BR>}<BR>1;<BR>
&nbsp;<BR>
Deus é o limite.<BR>                                               </body>
</html>