use File::Basename;
- ($name,$path,$suffix) = fileparse($fullname,@suffixlist)
+ ($name,$path,$suffix) = fileparse($fullname,@suffixlist);
+ $name = fileparse($fullname,@suffixlist);
fileparse_set_fstype($os_string);
$basename = basename($fullname,@suffixlist);
$dirname = dirname($fullname);
B<suffix> together in that order, the result will denote the same
file as the input file specification.
+In scalar context, fileparse() returns only the B<name> part of the filename.
+
=back
=head1 EXAMPLES
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(fileparse fileparse_set_fstype basename dirname);
-$VERSION = "2.72";
+$VERSION = "2.73";
# fileparse_set_fstype() - specify OS-based rules used in future