C
cousin_bubba
I have a script that contains several hashes. I need to retrieve
information from only one of the hashes depending on what argument the
user passes to the script. To access the values in the hashes I
would like to do the following:
@{$line_xx_section{$variable}
in this case the hash name is $line_xx_section and the "xx" part is
the argument passed by the user. I tried
@{$line_$ARGV[0]_section{$variable}} but it won't run. Any idea how I
can make this work.
Thanks for your help and putting up with my newbie problems.
information from only one of the hashes depending on what argument the
user passes to the script. To access the values in the hashes I
would like to do the following:
@{$line_xx_section{$variable}
in this case the hash name is $line_xx_section and the "xx" part is
the argument passed by the user. I tried
@{$line_$ARGV[0]_section{$variable}} but it won't run. Any idea how I
can make this work.
Thanks for your help and putting up with my newbie problems.