ibm1620 has asked for the wisdom of the Perl Monks concerning the following question:
%table_manager_info is a hash of hashes, and I want to store a list of two values into the 2nd level hash. I'm trying to use hash slice syntax but failing everything I try.
get_registered_process_path($instance_name) definitely returns an array, so the problem must be on the LHS of the assignment statement.
Any help greatly appreciated!
my @foo = get_registered_process_path($instance_name); @{$table_manager_info{$instance_name}->{qw/process_directory process_f +ile_name/}} = @foo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash slice syntax question
by choroba (Cardinal) on Jul 12, 2013 at 21:08 UTC | |
by ibm1620 (Hermit) on Jul 12, 2013 at 21:18 UTC |