Forgive me if this is a dumb question.  I'm a newcomer to Perl.

I was trying to do something the other day and ran across this odd
little problem.

I had some lines in my script that looked something like this:

$ddd = 8;
...
if ($ddd == 08) {print ('hi');}

When  I tried to run, I would get the following error:

Illegal octal digit at C:\atest\tryme.pl line 2, at end of line
Execution of C:\atest\tryme.pl aborted due to compilation errors.

I figured out how to get around the problem, but I'm curious about why
it occures, and why it only occurs with 08.

Thanx

-Kono

==============================================================================
This communication, together with any attachments hereto or links contained herein, is 
for the sole use of the intended recipient(s) and may contain information that is 
confidential or legally protected. If you are not the intended recipient, you are 
hereby notified that any review, disclosure, copying, dissemination, distribution or 
use of this communication is STRICTLY PROHIBITED.  If you have received this 
communication in error, please notify the sender immediately by return e-mail message 
and delete the original and all copies of the communication, along with any 
attachments hereto or links herein, from your system.

==============================================================================
The St. Paul Travelers e-mail system made this annotation on 11/03/2004, 03:54:29 PM.

Reply via email to