Re: Help needed: Simple HASHES question

2003-04-05 Thread Ciprian Morar
sorry for the spam - my question has been answered Hotmail was filtering the discussion list. C 1. What is the difference between Line #1 and Line #2? 2. Why is the Line #2 declaration incorrect? use strict; my %option; $option {'q'} = new CGI; #Line 1- $option{'Mon'} = 'Monday

Help needed: Simple HASHES question

2003-04-05 Thread Ciprian Morar
1. What is the difference between Line #1 and Line #2? 2. Why is the Line #2 declaration incorrect? use strict; my %option; $option {'q'} = new CGI; #Line 1- $option{'Mon'} = 'Monday'; #Line 2 - $option->{'Tue'} = 'Tuesday'; print $option{'q'} -> header(), $

need help - simple HASHES question

2003-04-04 Thread Ciprian Morar
1. What is the difference between Line #1 and Line #2? 2. Why is the Line #2 declaration incorrect? use strict; my %option; $option {'q'} = new CGI; #Line 1- $option{'Mon'} = 'Monday'; #Line 2 - $option->{'Tue'} = 'Tuesday'; print $option{'q'} -> header(), $