Re: [Boston.pm] This example from "Perl Best Practices" is confusing me

2005-12-10 Thread Bob Clancy
thanks, I get it now! -- Bob (sent from my Treo) On Sat, 10 Dec 2005 19:48:07 -0500 (EST) Justin L Deri <[EMAIL PROTECTED]> wrote: >This example is just creating a hash. >... 1. So you end up with a >hash like > >( q => 1, quit => 1, bye => 1, etc...)

Re: [Boston.pm] This example from "Perl Best Practices" is confusing me

2005-12-10 Thread Justin L Deri
This example is just creating a hash. There isn't really a "test" inside the map code. It just returns a list of values: first the word (e.g. q quit bye exit) and secondly 1. So you end up with a hash like ( q => 1, quit => 1, bye => 1, etc...) If this example used grep rather than map, then I

Re: [Boston.pm] This example from "Perl Best Practices" is confusing me

2005-12-10 Thread Jerrad Pierce
It's not a test, in perl 6 parlance that's a pair... it's for creating a hash form a list. PS> You'd have had your answer sooner if fucking Comcast would stop dropping packets like crzy and breaking connections >-| -- H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm OkCTws

Re: [Boston.pm] This example from "Perl Best Practices" is confusing me

2005-12-10 Thread Bob Clancy
>I came couldn't figure out what a fat comma would >mean in a test inside a map block. Is this a typo >(possibly meaning "(#_ >= 1)" instead) or is there $_ >= 1 Fixing a couple of typo's of my own :-) ___ Boston-pm maili

[Boston.pm] This example from "Perl Best Practices" is confusing me

2005-12-10 Thread Bob Clancy
URL from safari.oreilly.com: http://safari.oreilly.com/?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=0596001738/perlbp-CHP-4-SECT-18&k=null&g=&catid=&s=1&b=1&f=1&t=1&c=1&u=1&r=&o=1&n=1&d=1&p=1&a=0&page=0 I came couldn't figure out what a fat comma would mean in a test inside a map bloc