[plug] Cutting Strings in Perl
Simon Scott
sscott at iinet.net.au
Thu Jan 15 13:12:36 WST 2004
dunno if it will work for doze filenames, but
http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch09_11.htm
> I have a string in perl in the below format.
> C:\dir1\dir2\filename.ext
> (It may have more than 1 extentsion)
> What I wish to do is just get the file name in a number of formats.
> I would like out put in the below formats
> filename
> filename.ext
> Could anybody please help me as I don't under stand regex and all the web
sites
> I could find weren't very helpfully.
> Thanks
> Tim
> p.s. This MUST be Perl compatible (not by choice)
More information about the plug
mailing list