Help for this page
my $value = "/home/image/office.iso"; my($fullname, $filename) = $value =~ m< / ( ( [^/]+ ) \. .* ) \z >x; ... fullname - office.iso filename - office
use File::Spec::Functions 'splitpath'; ... fullname - office.iso filename - office