--- Lisa Neclos <[EMAIL PROTECTED]> wrote: > I am attempting to create a hash slice from a hash. The hash is: > > %hash = ("test1" => "test10", > "test2" => "test12" , > "test3" => "test13") > > I want the slice to include only the keys test1 and test3. How can I > accomplish this?
Lisa, my @results = @hash{ qw/ test1 test3 / }; Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]