lz你写的需求,不清晰啊,最好举个例子输入什么,然后需要得到什么样的hash
2009/2/15 allen <[email protected]> > perl里面怎么获得如同C里面 allocate的那种能力? > 比如我输入2,就自动产生2组hash;输入3,就自动产生3组hash > 我现在写的脚本很需要这样的功能,希望大家能帮助我。 > 我写的: > > my ($input_thing ,$input_value) = @_; > > #--------------------- > # internal variables > #--------------------- > my $i=0; > $i++; > > my ${hash_$i}{$input_thing}={$input_value}; > > > 这样的话 报错。。。。。。。 > > > > --~--~---------~--~----~------------~-------~--~----~ 您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。 要在此论坛发帖,请发电子邮件到 [email protected] 要退订此论坛,请发邮件至 [email protected] 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛 -~----------~----~----~----~------~----~------~--~---
