> On Thu, Aug 6, 2009 at 11:15, Bryan R Harris<bryan_r_har...@raytheon.com> > wrote: >> >>>> According to the FAQ you want to do it like this: >>>> >>>> s/^\s+//, s/\s+$// for $var; >> >> >> I can't find documentation of this notation anywhere, i.e. the comma between >> statements with a trailing for. >> >> John, where do you find all this cool stuff? > snip > > You stumble across idioms as you read code and talk to people in the > community. The statement modifier version of for is documented in > [perldoc perlsyn][1] and the the comma operator in scalar/void context > is documented in [perldoc perlop][2]. > > [1] : http://perldoc.perl.org/perlsyn.html#Statement-Modifiers > [2] : http://perldoc.perl.org/perlop.html#Comma-Operator
Now that's just impressive. For some reason the back of my brain thinks if I knew perl as well as you two seem to I could easily make all the money I wanted. Just between you and me =), is that true?? Thanks for the responses, I've learned a lot in the last 2 days. - B -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/