<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">POis é.. <br> 
my 
$x 

''; 

string 
vazia<br>&nbsp; 
&nbsp; 
print 
"definido\n" 
if 
defined 
$x;<br><br>&nbsp; 
&nbsp; 
my 
$y 

0; 

zero<br>&nbsp; 
&nbsp; 
print 
"definido\n" 
if 
defined 
$y;<br><br>Os dois retornam verdadeiros..<br><br>--&gt; A funcao defined devolve um valor verdadeiro se seu argumento estiver definido, caso contrario ela devolve um valor falso..<br><br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Mensagem original ----<br>De: Nelson Ferraz &lt;nferraz@gmail.com&gt;<br>Para: Cascavel Perl Mongers &lt;cascavel-pm@pm.org&gt;<br>Enviadas: Sexta-feira, 22 de Fevereiro de 2008 18:47:15<br>Assunto: Re: [Cascavel-pm] Nao mostrar elementos indefinidos<br><br>&gt; 
Nao 
da 
certo.. 
.alguem 
pode 
me 
explicar??<br>&gt; 
Eu 
ainda 
nao 
consegui 
entender 
:(<br><br>A 
resposta, 
como 
sempre, 
está 
na 
documentação:<br><br>&nbsp; 
&nbsp; 
perldoc 
-f 
defined<br><br>&nbsp; 
&nbsp; 
&nbsp; 
 
defined 
Returns 

Boolean 
value 
telling 
whether 
EXPR 
has 

value 
other<br>&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
&nbsp; 
 
than 
the 
undefined 
value 
"undef".<br><br>A 
string 
vazia 
é 
um 
valor 
diferente 
de 
undef; 
portanto, 
defined<br>retorna 
verdadeiro.<br><br>Experimente:<br><br>&nbsp; 
&nbsp; 
my 
$x 

''; 

string 
vazia<br>&nbsp; 
&nbsp; 
print 
"definido\n" 
if 
defined 
$x;<br><br>&nbsp; 
&nbsp; 
my 
$y 

0; 

zero<br>&nbsp; 
&nbsp; 
print 
"definido\n" 
if 
defined 
$y;<br><br>A 
propósito, 
Patty, 
você 
já 
começou 

estudar 
algum 
livro 
de 
Perl?<br>_______________________________________________<br>Cascavel-pm 
mailing 
list<br><a ymailto="mailto:Cascavel-pm@pm.org" href="mailto:Cascavel-pm@pm.org">Cascavel-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/cascavel-pm" target="_blank">http://mail.pm.org/mailman/listinfo/cascavel-pm</a><br></div><br></div></div><br>


      <hr size=1>Abra sua conta no <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.mail.yahoo.com/">Yahoo! Mail</a>, o único sem limite de espaço para armazenamento! 
</body></html>