On Mon, Jul 11, 2005 at 03:04:37PM -0400, [EMAIL PROTECTED] wrote:
> I just realized that myself. I was considering adding a Makefile.PL
> to help the other platforms.
Or just remove the AutoLoader. Its purpose is to prevent loading all that
unnecessary code on VMS. So...
package VMS::Filespec;
if( $^O ne 'VMS' ) {
require VMS::Filespec::PurePerl;
VMS::Filespec::NonVMS->import;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = @VMS::Filespec::NonVMS::EXPORT;
@EXPORT_OK = @VMS::Filespec::NonVMS::EXPORT_OK;
}
and stick all the code in VMS::Filespec::PurePerl. No build necessary.
Or if having two files makes you queasy, stick all the code after the __END__
block and...
eval <DATA> if $^O ne 'VMS';
though that sort of thing makes debugging a royal pain.
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern
ROCKS FALL! EVERYONE DIES!
http://www.somethingpositive.net/sp05032002.shtml