while(<DATA>) { print "$'", if($_ =~ /(.*)\//g); } __DATA__ ./t2 /some/path/to/t3 /some/t2
In reply to Re: split string and always get last word
by Praveen
in thread split string and always get last word
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |