Sharad Gupta wrote: > > Hi Friends, Hello,
> I have a hash whose values can be either array, hash etc. > > say i have: > > my $self = { > 'hello how' => { > 'r u' => 'I am', > .... > .... > }, > 'fine thank' => ['you'], > 'see ya' => 'next time', > .... > .... > }; > > How can i replace the spaces in keys with '_' without copying $self to some other > place.? You can't modify the keys once they are created. You would have to create a new key and copy the value to the new key. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]