On 10 Jun 2006 at 2:12, Petr Vileta wrote:

> How to Perl compel to create copy of hash?
> I have public hash and in sub{} I want to create local copy without 
> reference to original.

In your sub, just do:
  my %localhash = %$publichash

/bernie\

-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:[EMAIL PROTECTED]     Pearisburg, VA
    -->  Too many people, too few sheep  <--       



_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to