Help for this page

Select Code to Download


  1. or download this
         foreach $key (keys (%hash)) {
                 replace ($hash{$key});
         }
    
  2. or download this
         sub replace {
                chomp;
                s/'/\\'/g;
         }
    
  3. or download this
         sub replace {
              chomp $_[0];
              $_[0] =~ s/'/\\'/g;
         }