If "somename" could contain more than \w provides, then YMMV.sub get_basename { my $basename; my $fullname = shift; $fullname =~ m/.*\/(\w+)\.\w+/; $basename = $1; return $basename; }
$/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ } + sig map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu +" );
In reply to Re: Capturing Base Name of a File With or Without Path
by chargrill
in thread Capturing Base Name of a File With or Without Path
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |