<div>Se tiver comparando string/caracter acho que tem que usar 'eq' ao inves de '='</div> <div> </div> <div>if ( $guh eq 'RespostaCorreta' ) {</div> <div> print ' \o/ ';</div> <div>} elsif ( $guh eq 'RespostaIncorreta' ) {</div> <div> print ' :( ';</div> <div>} else {</div> <div> print ' :P ';</div> <div>}</div> <div> </div> <div>Espero ter ajudado,</div> <div> </div> <div>guh<BR><BR><B><I>Mura <murarm@terra.com.br></I></B> escreveu:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="Microsoft Word 11 (filtered medium)" name=Generator> <STYLE> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple;
text-decoration:underline;} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText {margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New";} @page Section1 {size:595.3pt 841.9pt; margin:70.85pt 69.6pt 70.85pt 69.6pt;} div.Section1 {page:Section1;} --> </STYLE> <DIV class=Section1> <div class=MsoPlainText><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">Bom dia pessoal,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black"><o:p> </o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Eu não estou conseguindo usar os blocos if elsif else<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt;
COLOR: black"><o:p> </o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Vejam parte do meu código<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black"><o:p> </o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">if ($::config{username} = $Char1) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char2, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt;
COLOR: black">elsif ($::config{username} = $Char2) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char3, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">elsif ($::config{username} = $Char3) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char4, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New"
color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">elsif ($::config{username} = $Char4) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char5, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">elsif ($::config{username} = $Char5) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char6, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div
class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">elsif ($::config{username} = $Char6) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char7, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">elsif ($::config{username} = $Char7) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char8, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR:
black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">elsif ($::config{username} = $Char8) {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">main::configModify('username', $Char9, 1)<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">else {<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Commands::run("quit");<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR:
black">}<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black"><o:p> </o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Acontece o seguinte, eu consigo mudar para $Char2, mas fica eternamente nisto, não muda para $Char3 ou 4.<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black"><o:p> </o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Se alguém pude me dar uma luz fico grato.<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black"><o:p> </o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New"
color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Abraço,<o:p></o:p></SPAN></FONT></div> <div class=MsoPlainText><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black">Mura<o:p></o:p></SPAN></FONT></div></DIV>_______________________________________________<BR>SaoPaulo-pm mailing list<BR>SaoPaulo-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/saopaulo-pm</BLOCKQUOTE><BR><p> 
                <hr size=1>
<a href="http://us.rd.yahoo.com/mail/br/tagline/freeisp/*http://br.acesso.yahoo.com">Yahoo! Acesso Grátis</a> - Internet rápida e grátis. Instale o discador agora!