[Israel.pm] mangled $_

Jason Friedman jason.friedman at weizmann.ac.il
Thu Dec 23 06:58:58 PST 2004

Hi all,

I am using a CPAN module, Text::Capitalize (it properly capitilizes
titles), but it "mangles" my $_. To get around it, I am doing:

  my $underscore = $_; 
  my $cap_title = capitalize_title($1,PRESERVE_ALLCAPS => 1); 
  $_ = $underscore;

Is there a better way of doing this or at least being warned?

(I already use: use warning and use strict).



More information about the Perl mailing list