Re: from Perl Cookbook - what is single quote in brackets

2007-07-31 Thread Nevada
So the single quote means single quote. Thanks, Chas. I thought it might have had some special meaning. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

from Perl Cookbook - what is single quote in brackets

2007-07-31 Thread Nevada
Hello, In the Perl Cookbook recipe 1.14 - "Properly Capitalizing a Title or Headline" I see this substitution: s/(\pL[\pL']*)/$nocap{$1} ? lc($1) : ucfirst(lc($1))/ge; if a word appears in the nocap hash, it is made lower case. the \pL matches a lower case character but what is [\pL']? Thank