Robert Citek wrote: > > On Jul 19, 2005, at 5:19 PM, Wiggins d'Anconia wrote: > >> Close. You want a hash slice. >> >> @[EMAIL PROTECTED] = @vals; >> >> A marvelously Perlish construct. >> >> http://danconia.org > > > Sweeeeet! Thanks a bunch. > > Do you have a good reference which explains this? I've looked in both > the Camel and Llama books, but didn't see the @$ construct anywhere. > > Regards, > - Robert
My llama is on loan but I thought it was in there especially since Randal Schwartz is a big proponent of them (as well he should be). There is a very small example of them in the Camel 3rd Edition pg. 53. And there is another small section on them in the Learning Perl Objects, References, and Modules book. Also there are mentions of them in the perldata and perllol perldoc pages that come with Perl. They are incredibly useful in database programming when you are constructing statements that need to include a dynamic list of fields. Not to mention all the other places.... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>