使用包访问perl哈希

时间:2013-04-22 12:08:50

标签: 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"

0 个答案:

没有答案