SPUG: File::Basename vs. File::Spec

Christopher Howard choward at indicium.us
Tue Jan 20 12:27:48 PST 2009


Question: if I know my application is working with Unix filenames, which 
is better: File::Basename or File::Spec (or some other core module)?

Basically, all I want to do is split a full path into directory portion 
and file portion, make an adjustment to the file portion, and then 
recombine them back into the full path.

-- 
Christopher Howard
http://indicium.us


More information about the spug-list mailing list