Hi,
If I have this hash:
%myhash = { '4 atc' => 'TGCGCatcGA', '5 ctg' => 'AGctgTGTTT', '3 NO MOTIF' => 'TCCGTGCGCT', '1 NO MOTIF' => 'ATGGTTAGGG', #need to splice this '2 caa' => 'GAAGcaaGGC' };
How can I take out/splice(?) the element of that hash that start with '1' and store it into another hash. So in the end I will have two hashes:
%myNEWhash = { '1 NO MOTIF' => 'ATGGTTAGGG'};
and the current becomes:
%myhash = { '4 atc' => 'TGCGCatcGA', '5 ctg' => 'AGctgTGTTT', '3 NO MOTIF' => 'TCCGTGCGCT', '2 caa' => 'GAAGcaaGGC' };
Thanks so much for your time.
Regards, Edward WIJAYA SINGAPORE
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>