Re: Delete key-value pair in perl

2014-03-09 Thread Uri Guttman
On 03/09/2014 07:58 AM, Alex Chiang wrote: Hi Shlomi, Thanks for reminding this beginner's trap. it isn't a trap. see my other post about it. uri -- Uri Guttman - The Perl Hunter The Best Perl Jobs, The Best Perl Hackers http://PerlHunter.com -- To unsubscribe, e-mail: beginners-unsubscr

Re: Delete key-value pair in perl

2014-03-09 Thread Uri Guttman
On 03/09/2014 05:00 AM, Shlomi Fish wrote: Hi Alex, On Sun, 9 Mar 2014 16:40:54 +1100 Alex Chiang wrote: Hi all, I'm a perl beginner, and when I tries to practice delete built-in, I find it's not working as I supposed to. 44 my %employ_list = ("e10220" => "Du", "e10250" => "Vic"); 45

Re: Delete key-value pair in perl

2014-03-09 Thread Paul Johnson
On Sun, Mar 09, 2014 at 04:40:54PM +1100, Alex Chiang wrote: > Hi all, > > I'm a perl beginner, and when I tries to practice delete built-in, I > find it's not working as I supposed to. > > 44 my %employ_list = ("e10220" => "Du", "e10250" => "Vic"); > 45 # iterate thru with each > 46

Re: Delete key-value pair in perl

2014-03-09 Thread Alex Chiang
Hi Shlomi, Thanks for reminding this beginner's trap. --- Regards ! Alex Chiang

Re: Delete key-value pair in perl

2014-03-09 Thread Shlomi Fish
Hi Alex, On Sun, 9 Mar 2014 16:40:54 +1100 Alex Chiang wrote: > Hi all, > > I'm a perl beginner, and when I tries to practice delete built-in, I find > it's not working as I supposed to. > > 44 my %employ_list = ("e10220" => "Du", "e10250" => "Vic"); > 45 # iterate thru with each > 4

Re: Delete key-value pair in perl

2014-03-08 Thread Uri Guttman
On 03/09/2014 12:57 AM, Alex Chiang wrote: Oh, yes, How stupid I am. I comment out the undef sentence, it works. Thanks for your help, you are my life saver, Uri :) you are welcome. but please reply to the list (as i did). i don't want private conversations off this list. uri -- Uri Gut

Re: Delete key-value pair in perl

2014-03-08 Thread Uri Guttman
On 03/09/2014 12:40 AM, Alex Chiang wrote: Hi all, I'm a perl beginner, and when I tries to practice delete built-in, I find it's not working as I supposed to. 44 my %employ_list = ("e10220" => "Du", "e10250" => "Vic"); 45 # iterate thru with each 46 while ( my ($k, $v) = each %emp