Re: AW: Hash with variable name

2010-05-12 Thread Akhthar Parvez K
On Wednesday 12 May 2010, HACKER Nora wrote: > Thanks for your explanation and the reference to perldoc, I understand now. > But it doesn't work yet, I still get the same error. I have altered my source > now as follows: > > my %stp_dirs = ( "mvb" => "\%mvb_dirs", >  

Re: AW: Hash with variable name

2010-05-12 Thread Akhthar Parvez K
Hi Nora, On Wednesday 12 May 2010, HACKER Nora wrote: > > while ( my($sdir,$tdir) = each %{$stp_dirs{'mvb'}}) { > > print("SourceDir: $sdir\t\tTargetDir: $tdir\n"); > > } > > Is that 'mvb' intentional? Also, I don't understand why to put '\%' in front > of the values from the master hash.