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