targetsmart has asked for the wisdom of the Perl Monks concerning the following question:
if @a = (a,b,c), after undef @a[1,2] we might get a,b as the content o +f @a, which is quite clear, because only $a[2] becomes undef, but con +sider the hash slice case if @a = (a,b,c), undef @a{@a} gives me, undef values properly for the +keys a,b and c, how is this possible?, I thought that as per array sl +ice effect it should only undef $a{c} isn't it?.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash slice again
by ikegami (Patriarch) on Jan 27, 2009 at 14:00 UTC | |
|
Re: Hash slice again
by lostjimmy (Chaplain) on Jan 27, 2009 at 14:23 UTC | |
by targetsmart (Curate) on Jan 27, 2009 at 14:57 UTC | |
by jethro (Monsignor) on Jan 27, 2009 at 15:23 UTC | |
by targetsmart (Curate) on Jan 27, 2009 at 15:48 UTC | |
by ikegami (Patriarch) on Jan 27, 2009 at 16:36 UTC | |
|
Re: Hash slice again (NOT)
by rir (Vicar) on Jan 28, 2009 at 21:05 UTC | |
by ikegami (Patriarch) on Jan 28, 2009 at 21:54 UTC |