[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Directory separator magic?



[Sent again since my first try on 7 dec. didn't get through]

When glancing over the source code for XML::Parser and
XML::Parser::Expat, I stumbled across the following snippets of code:

	require "URI/URL;pm";

	$have_File_Spec = do 'File/Spec.pm';


Excuse me? On a Mac? Oddly enough, it even seems to be working! Is there
some kind of '/' to ':' mapping going on behind the scenes that I'm
unaware of?

It looks like dirty code to me. The first one should have been:

	require URI::URL;

but I can't grasp how the second one can work at all, especially since
the Mac NEEDS the use of File::Spec.

I guess that this doesn't work:

	$have_File_Spec = do File::Spec;

No it doesn't. Oh well.

But what's the exact status on this undocomented (AFAIK) directory
separator magic?

-- 
	Bart.

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org