- or download this
$mystring = ($mystring =~ /(\w{3,})$/) ? $1 : '';
Print “DOE”;
- or download this
$mystring = ($mystring =~ / (\w{1,2}\s)(\w+)$/) ? $2 : '';
Print “JOE”;
- or download this
$mystring = ($mystring =~ /(\w{1}\s\w+)|(\w{3,})$/) ? $1 : '';
print "\n $mystring\n";
- or download this
#!/usr/bin/perl
...
print "\n\n $2\n\n";
}