Help for this page

Select Code to Download


  1. or download this
    my $str;
    $str = "drwxr-xr-x    2 jonnyq   jonnyq       4096 Sep 21 18:52 bin";
    
  2. or download this
    my $file = substr $str, 56;
    
  3. or download this
    if ( $string =~ /\s(\S+)\s*$/) { print $1, "\n" };
    
  4. or download this
    my $filename = (split /\s+/, $string)[-1];
    print $filename, "\n";