Re: Copying a hash-of-hashes

From: Zentara (zentara_at_highstream.net)
Date: 12/30/04


To: beginners@perl.org
Date: Thu, 30 Dec 2004 08:45:45 -0500

On Wed, 29 Dec 2004 22:58:17 -0500, rabbit@rabbit.us (Peter Rabbitson)
wrote:

>The question is whether there is an elegant way to produce a complete copy
>of a hash-of-hashes-of-hashes-...-of-hashes for internal subroutine purposes
>and make sure that all references will be translated properly as well,
>leaving the subroutine no ability to modify the main hash.

#!/usr/bin/perl
use Clone qw(clone);
my $newhash = clone($hashref);

see "perldoc Clone"

-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html


Relevant Pages

  • Re: iis 6 ssl redirect initial login encrypted?
    ... Sniffing traffic lets you intercept data. ... Impersonating someone gives you the ability to then take actions as the user. ... The hash is never available by simply intercepting ... that to the end user to encrypt, and I then return it to the IIS server. ...
    (microsoft.public.inetserver.iis.security)
  • Re: iis 6 ssl redirect initial login encrypted?
    ... Sniffing traffic lets you intercept data. ... the ability to then take actions as the user. ... encrypted using the hash of the password. ... You don't need to execute a MITM attack ...
    (microsoft.public.inetserver.iis.security)
  • Re: Laser printer recommendations
    ... but there's no sign of it having any ability ... And they're cheap, too. ... a PS clone. ... I've spent a total of US$45 on toner to print over 6,000 pages. ...
    (uk.comp.sys.mac)
  • Re: [Full-Disclosure] Is Mozillas "patch" enough?
    ... >An attacker can exploit the ability to modify the user's configuration in ... make Mozilla use a trojanized Chrome or a trojanized ... At that point they already have the ability to run code on the box ... because they have to be able to do that to modify the config files. ...
    (Full-Disclosure)
  • Re: INBOX, PWORD
    ... You don't need to clone the project to modify the dialogs. ... modify the res files. ... I have tried sysgen_capture pmail, sysgen_capture Inbox, ...
    (microsoft.public.windowsce.platbuilder)