in reply to Defining an anonymous hash with slices and lists.

What's does a slice (assignment) return?
warn @foo{1,2,3} = ( a .. c ); __END__ abc at - line 1.
You can't do it with an unnamed hash for the same reason you can't do it with a named hash.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Defining an anonymous hash with slices and lists.
by davido (Cardinal) on Aug 27, 2003 at 22:12 UTC
    Thanks all, I've got it straight now. :) Never hurts to be inquisitive. PodMaster's explanation suddenly turned on the lightbulb.

    Dave

    "If I had my life to do over again, I'd be a plumber." -- Albert Einstein