Reputation: 4059
I have a code
use Tie::File::AsHash;
tie %sets, 'Tie::File::AsHash', '.\\main\\old_names.txt', split => '\+' or die "Problem trying to %hash: $!";
and I get the error:
Can't locate Tie/File/AsHash.pm in @INC <@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .> at C:\Users\user\Desktop\test.pl line 97 (which is the second line I posted)
BEGIN failed--compilation aborted at line 97.
Upvotes: 1
Views: 5004
Reputation: 386331
That usually indicates that the module isn't installed. One normally installs a module as follows:
cpan Tie::File::AsHash
Upvotes: 4