Ken,

The reason things are the way they are is that the VMS versions of 
the File::Spec routines always return values in VMS syntax regardless 
of whether the input was Unix or VMS syntax.  Such is the case with 
your example:

$ perl -"MFile::Spec" -e "print File::Spec->catfile( 'moretest', 'quux' );"
[.moretest]quux

This then has to be converted back to Unix syntax if we want add_file 
to do the right thing with it.  That's probably the wrong approach, 
though.  If we know for sure we want the result in Unix syntax, then 
we should either overload catfile with the Unix version or just do a 
simple join().
-- 
____________________________________________
Craig A. Berry                   
mailto:[EMAIL PROTECTED]

"Literary critics usually know what they're
talking about. Even if they're wrong."
        -- Perl creator Larry Wall

Reply via email to