I guess I didn't quite use the original code. I made the mistake of typing what it should have been instead of what it was:

#!/usr/bin/perl

$street="Wright";
print "$street\n";
$street="Washington";

It's amazing what a dollar sign and a change of case can do.

-Marc

Hello Marc

Odd. I just tried the same code snippet and it worked fine.

Do you refer to the original code?

 #!/usr/bin/perl

 Street="Wright";
 print "$street\n";
 $street="Washington";

This would be very odd?!?

You might try putting a space before and after your "=" signs.

Yes, many people consider this better formatting style...

I don't know if that makes a difference, but it won't hurt.

... but it won't change the interpretation of the code by perl :-)

Dani



--
Marc Sacks, Ed.D. | Quality Assurance Manager
Lextranet | 107 Union Wharf | Boston, MA 02109
http://www.lextranet.com
(617) 227-4469 Extension 228 [EMAIL PROTECTED]

THE INFORMATION IN THIS MESSAGE IS INTENDED ONLY FOR THE PERSONAL AND 
CONFIDENTIAL USE OF THE DESIGNATED RECIPIENTS NAMED ABOVE AND MAY CONTAIN 
LEGALLY PRIVILEGED INFORMATION. If the reader of this message is not the 
intended recipient or an agent responsible for delivering it to the intended 
recipient, you are hereby notified that you have received this document in 
error, and that any review, dissemination, distribution or copying of this 
message is strictly prohibited. If you have received this communication in 
error, please notify us immediately by telephone at 617-227-4469 Ext. 228.  
Thank you.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to