$ perl -ML -wE 'my $h = Hash::AsObject->new( foo => "bar" ); say $h->foo' Can't locate foo.pm in @INC (you may need to install the foo module)