dir have basename too
$ perl -MPath::Class -le " print dir($_)->basename for @ARGV" ro/sham/ +bo ono/mato/poeia otorhinolaryngology bo poeia otorhinolaryngology
In reply to Re^2: how to remove everything before last slash in perl?
by Anonymous Monk
in thread how to remove everything before last slash in perl?
by mipatel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |