HACKER Nora <nora.hac...@stgkk.at> asked:
> 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",
>                                       "pkv" => "\%pkv_dirs",
>                                       "av" => "\%av_dirs",
>                                       "be" => "\%be_dirs",
>                                       "vvw" => "\%vvw_dirs" );
> [...]
> my ($sdir, $tdir);
> while (($sdir,$tdir) = each %{$stp_dirs{$stp}}) {
>       DEBUG("SourceDir: $sdir\t\tTargetDir: $tdir\n");
> }
> 
> Did I misunderstand anything?

Yes, you're using double quotes around the hash references.

Note how I wrote it:

my %stp_dirs = (        'mvb' => \%mvb_dirs,
                        'pkv' => \%pkv_dirs,
                        'av' => \%av_dirs,
                        'be' => \%be_dirs,
                        'vvw' => \%vvw_dirs );

Cheers,
Thomas

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to