Hi Thomas, > Try: > > my %stp_dirs = ( 'mvb' => \%mvb_dirs, > 'pkv' => \%pkv_dirs, > 'av' => \%av_dirs, > 'be' => \%be_dirs, > 'vvw' => \%vvw_dirs ); > > 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. Nevertheless, I tried the alterations as suggested but the error remains: Can't use string ("%mvb_dirs") as a HASH ref while "strict refs" in use at /opt/data/magna/wartung/tools/get_lieferung.pl line 145. Any other hints? Kind regards, Nora -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/