> -----Original Message----- > From: Rob Dixon [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 14, 2003 11:17 AM > To: [EMAIL PROTECTED] > Subject: Re: Question about creating a hash of key-value > pairs based on sub parameters. > > > Dan > > "Dan Muey" <[EMAIL PROTECTED]> wrote in message > news:D6D77DB239A2004BB08A240E2E71460D08FB73> @customer.infiniplex.net... > > This may work : > > > > &monkey("key","value","key1","value1"); > > > > sub monkey { > > %new_hash = (); > > %new_hash = $_[0]; > > $_[0] is 'key', so this will assign %new_hash = ( key => undef ); > > You want '%new_hash = @_' Oh yeah duh, that's what I meant. Sorry for the mix up. Not sure what I was smoking exactly! > > :-) > > Rob > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]