[Typofix] Re: Copying Hashes

2006-09-13 Thread D. Bolliger
D. Bolliger am Donnerstag, 14. September 2006 00:50: > #!/usr/bin/perl > > use strict; > use warnings; Obviously, this part occurs once too much, sorry :-( Dani -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Copying Hashes

2006-09-13 Thread D. Bolliger
Hardly Armchair am Donnerstag, 14. September 2006 00:00: > [EMAIL PROTECTED] wrote: > > There is something you're not telling us about the contents of these > > hashes. > > Sorry, %p_mod looks like this: [...see in script below] > > My best guess (since you make us guess) is that you're looking for

Re: Re: Copying Hashes

2006-09-13 Thread Tom Phoenix
On 9/13/06, Hardly Armchair <[EMAIL PROTECTED]> wrote: > My best guess (since you make us guess) is that you're looking for a > deep copy because the values of %p_mod are actually references. I was unaware that this made a difference, thus the insufficient information. How do I proceed? Rand

Re: Copying Hashes

2006-09-13 Thread Hardly Armchair
[EMAIL PROTECTED] wrote: There is something you're not telling us about the contents of these hashes. Sorry, %p_mod looks like this: %p_mod = { 'A' => { 'fingers' => { '4' => 'ABSFMQS', '5' => 'SMTFQNL'

Re: Copying Hashes

2006-09-13 Thread lawrence
> Sorry for the bonehead question, but I have a hash called %p_mod. I > want to make a copy of it and edit the copy so that %p_mod stays the same. > > Currently, I'm creating %p_mod, writing > > %custom = %p_mod; > > to make a copy of %p_mod in %custom and then doing a bunch of stuff to > %c