If you are literally using the tilde character, try using the full path to your "perl_modules" dir instead.
Show us the exact error message, using "code" tags (see Writeup Formatting Tips).
Your Expect.pm file must be under a "Net/SSH" directory path.
This will also be useful:
use Data::Dumper;
print Dumper(\@INC);
|