On Thu, 8 Jun 2000, Perrin Harkins wrote: > On Thu, 8 Jun 2000, Matt Sergeant wrote: > > > > The one that bugs me is when I see people doing this: > > > > > > $hash{"$key"} > > > > > > instead of this: > > > > > > $hash{$key} > > > > Those two now also result in the same code. ;-) > > > > But the former is just ugly. > > Sometimes it's worse than just ugly. See the entry in the Perl FAQ: > >http://www.perl.com/pub/doc/manual/html/pod/perlfaq4.html#What_s_wrong_with_always_quoting > > Not likely that anyone would be using something as a hash key that would > suffer from being stringified, but possible. It's definitely a bit slower > as well, but that's below the noise level. It's not slower in 5.6. "$x and $y" in 5.6 gets turned into $x . ' and ' . $y (in perl bytecode terms). -- <Matt/> Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org http://xml.sergeant.org
- Re: [performance/benchmark] printing techniques Matt Sergeant
- Re: [performance/benchmark] printing techniques Stas Bekman
- Re: [performance/benchmark] printing techniques Eric Cholet
- Re: [performance/benchmark] printing technique... Eric Strovink
- Re: [performance/benchmark] printing techn... Eric Cholet
- Re: [performance/benchmark] printing t... Matt Sergeant
- [OT] Re: [performance/benchmark] ... Perrin Harkins
- Re: [OT] Re: [performance/ben... Matt Sergeant
- Re: [OT] Re: [performance/ben... Perrin Harkins
- Re: [OT] Re: [performance/ben... Mike Lambert
- Re: [OT] Re: [performance/ben... Matt Sergeant
- Re: [OT] Re: [performance/ben... Doug MacEachern
- Re: [performance/benchmark] printing technique... Matt Sergeant
- Re: [performance/benchmark] printing techn... Stas Bekman
- Re: [performance/benchmark] printing technique... Barrie Slaymaker
- Re: [performance/benchmark] printing techn... Eric Cholet
- Re: [performance/benchmark] printing t... Barrie Slaymaker
- Re: [performance/benchmark] printing techniques Jeff Norman
- Re: [performance/benchmark] printing techniques Stas Bekman
- Re: [performance/benchmark] printing technique... ___cliff rayman___
- Re: [performance/benchmark] printing techn... Stas Bekman