I have a hash as follows
my %month_hash=( 08 => 'August' );
When I compile the program , it tells "Illegal octal digit '8'" error and I have solved this by adding single quotes like
my %month_hash=( '08' => 'August' );
Is there any other way to prevent this error, because I have more hashes like this and with this solution I need to go and change all the hashes.
The great pleasure in my life is doing what people say you cannot do.
In reply to Illegal octal digit error by lakshmananindia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |