Michael G. Schwern [Wed, 30 May 2001 15:24:20 +0000 (16:24 +0100)]
Message-ID: <
20010530152420.H670@blackrider.blackstar.co.uk>
p4raw-id: //depot/perl@10331
# Test that autouse's lazy module loading works. We assume that nothing
# involved in this test uses Text::Soundex, which is pretty safe.
-use File::Spec;
use autouse 'Text::Soundex' => qw(soundex);
-my $mod_file = File::Spec->catfile(qw(Text Soundex.pm));
-$mod_file = VMS::Filespec::unixify($mod_file) if $^O eq 'VMS';
+my $mod_file = 'Text/Soundex.pm'; # just fine and portable for %INC
ok( !exists $INC{$mod_file} );
ok( soundex('Basset'), 'B230' );
ok( exists $INC{$mod_file} );