Help for this page

Select Code to Download


  1. or download this
    1 while $sql =~ s%(/.*)/%$1%gs;
    
  2. or download this
    use Regexp::Keep;   # I believe, it will be unnecessary on Perl 5.10
    1 while $sql =~ s%/.*\K/%%gs;