
rGeoffrey
User
Jul 27, 2000, 12:11 PM
Post #1 of 3
(18603 views)
|
When a match is not a match
|
Can't Post
|
|
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> $_ = '123'; $w = /1/ ; $x = /(1)/ ; ($y) = (/1/) ; ($z) = (/(1)/); </pre><HR></BLOCKQUOTE> If you then do <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> print "w=$w,x=$x,y=$y,z=$z,\n"; </pre><HR></BLOCKQUOTE> You will get <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> w=1,x=1,y=1,z=1, </pre><HR></BLOCKQUOTE> But not all of them get the same answer for the same reasons. How are the four lines different? Explain your answer.
|