<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Bom, como enfatizado antes.</FONT></DIV>
<DIV><FONT face=Arial size=2>Ambos os dois juntos, para esse exemplos, pra mim, 
fazem o mesmo.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>#!c:/perl/bin/perl.exe </FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>use warnings;<BR>use strict;</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>my $a = 5;<BR>$a = $a + 1;<BR>printf 
$a."\n";</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>my $b = 5;<BR>$b++;<BR>printf 
$b."\n";<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>E nesse exemplo, não, não ouveram mensagens de 
warning.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>E, como de costume, a conversa aqui no Forum 
desviou do assunto.</FONT></DIV>
<DIV><FONT face=Arial size=2>Ou seja.</FONT></DIV>
<DIV><FONT face=Arial size=2>Se eu estivesse com algum problema no código acima, 
a preocupação dos colegas não seria me ajudar com meu problema.</FONT></DIV>
<DIV><FONT face=Arial size=2>Mas apenas comentar que eu não devia fazer assim e 
não devia fazer assado.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Pergunta:</FONT></DIV>
<DIV><FONT face=Arial size=2>O meu problema é o programa acima.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1) Ele esta dando erro para alguém?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Nilson Santos Figueiredo Junior" 
&lt;</FONT><A href="mailto:acid06@gmail.com"><FONT face=Arial 
size=2>acid06@gmail.com</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Agnaldo Macedo" &lt;</FONT><A 
href="mailto:agnaldo@starweb-software.com.br"><FONT face=Arial 
size=2>agnaldo@starweb-software.com.br</FONT></A><FONT face=Arial size=2>&gt;; 
"Cascavel Perl Mongers" &lt;</FONT><A href="mailto:cascavel-pm@pm.org"><FONT 
face=Arial size=2>cascavel-pm@pm.org</FONT></A><FONT face=Arial 
size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Wednesday, September 03, 2008 3:48 
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [Cascavel-pm] Problemas apenas nas 
requisições via ajax (caracteres com acentuação)</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial 
size=2>2008/9/3 Agnaldo Macedo &lt;</FONT><A 
href="mailto:agnaldo@starweb-software.com.br"><FONT face=Arial 
size=2>agnaldo@starweb-software.com.br</FONT></A><FONT face=Arial 
size=2>&gt;:<BR>&gt; Então realmente, para o exemplo abaixo, eu não sei a 
diferença.<BR>&gt; Pois ambos, para o exemplo abaixo, estão iguais.<BR><BR>Entre 
outras diferenças, tem uma bem simples.<BR><BR>Compare:<BR><BR>&nbsp; use 
warnings;<BR>&nbsp; use strict;<BR>&nbsp; my $var;<BR>&nbsp; $var = $var + 
1;<BR><BR>Com:<BR><BR>&nbsp; use warnings;<BR>&nbsp; use strict;<BR>&nbsp; my 
$var;<BR>&nbsp; $var++;<BR><BR>A primeira gera um warning, enquanto a segunda 
não.<BR><BR>Além disso, caso você esteja utilizando sobrecarga de operadores, 
o<BR>resultado pode ser completamente diferente.<BR><BR>Por fim, internamente, é 
provavelmente que $var++ seja mais otimizado<BR>(e com sorte, menos sujeito a 
race conditions) que $var = $var + 1.<BR><BR>Deve ter mais coisa que não me veio 
à cabeça agora...<BR><BR>-Nilson Santos F. Jr.</FONT></BODY></HTML>