[Ferm] patches for file name handling
Marc Haber
mh+ferm at zugschlus.de
Sat Feb 26 17:44:32 CET 2011
Hi,
please consider the following two patches: One adds two functions
@basename and @dirname doing the obvious via File::Spec::splitpath,
and one introducing a new automatic variable FILEBNAME which contains
only the base name of the file as opposed to FILENAME which may
contain path components if we included files from other directories.
The patches include test cases and adapt the documentation.
The test case for FILEBNAME could include test cases for FILENAME and
DIRNAME, but I couldn't figure out how to handle the variable parts of
the path component.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-basename-and-dirname-functions.patch
Type: text/x-diff
Size: 2754 bytes
Desc: not available
URL: <http://foo-projects.org/pipermail/ferm/attachments/20110226/18a3c5f5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-FILEBNAME.patch
Type: text/x-diff
Size: 2451 bytes
Desc: not available
URL: <http://foo-projects.org/pipermail/ferm/attachments/20110226/18a3c5f5/attachment-0001.bin>
More information about the Ferm
mailing list