Help for this page

Select Code to Download


  1. or download this
    my $row = 'a,b,c,d,15';
    my $str = $row =~ s/,[^,]*$//r;    # $str now contains 'a,b,c,d'