I am confused, I thought if in first case we declar var as hash, then we do
my %var; and then later : /(.*?)\s*=\s*(.*)/ and $$var{$1} = $2 while <FILE>; -Pradeep -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 2:47 PM To: Pradeep Sethi Subject: Re: Study group for motivated people wanting to learn Perl. The following message is a courtesy copy of an article that has been posted to perl.beginners as well. >>>>> "Pradeep" == Pradeep Sethi <[EMAIL PROTECTED]> writes: Pradeep> /(.*?)\s*=\s*(.*)/ and $var{$1} = $2 while <FILE>; Pradeep> did u mean ? Pradeep> /(.*?)\s*=\s*(.*)/ and $var->{$1} = $2 while <FILE>; Not necessarily. The first uses %var, the second uses $var containing a hashref. Both are completely valid. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!