Help for this page

Select Code to Download


  1. or download this
    $base = ( split(/\./,$fname) )[0];
    
  2. or download this
    perl -Mstrict -w -e '
      my $fname = "test.txt";
      my $base  = ( split(/\./,$fname) )[0];
      print "$base\n";'