sub File::Spec::dirname { shift; return File::Spec->catpath( ( File::Spec->splitpath(shift) )[ 0, 1 + ] ); } sub File::Spec::basename { shift; return File::Spec->catpath( ( File::Spec->splitpath(shift) )[ -1 ] + ); }
In reply to don't be afraid of File::Spec :)
by PodMaster
in thread use File::Basename - need to specify OS?
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |