标签: perl hash package
请回答以下链接中发布的问题:
How do I populate a hash (that has been defined in a separate file) in my Perl script and do necessary operations on it?
请查看页面的最后部分..即
现在假设我想从file2.def或file3.def访问哈希等等。
如何使我的脚本具有通用性,以便它自动从包含的文件中捕获哈希名称并自动访问其key->值对
即
$file1::"here I want it to take the name of the hash depending on the file included"