If I do
perl -v
I get the answer
This is perl, v5.8.0 built for darwin
but I just looked into the /System/Library/Perl folder and there's a "5.8.1" folder full of what looks like all the right stuff. If I have both 5.8.0 and 5.8.1 what do I do to invoke the newer version when I type "perl [scriptname]"?
Also, where are the modules supposed to be and where does Apple think they should be? -- If I do
perl -Mnotamodule
I get
Can't locate notamodule.pm in @INC (@INC contains: /Library/Perl/darwin /Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .).
so those are presumably the default locations, but does CPAN have the same defaults? I sometimes get conflicting results where the command-line CPAN tool tells me
[modulename] is up to date
but a script will say it can't find it.
I realise this is a lot to ask in one go...
------------------------------------------------------------
"Have You Validated Your Code?"
John Horner (+612 / 02) 9333 2110
Senior Developer, ABC Online http://www.abc.net.au/
------------------------------------------------------------