in reply to Re^2: Can't locate Email/MIME.pm in @INC
in thread Can't locate Email/MIME.pm in @INC

I also tried use Mail::Mailer and use Net::SMTP at the top, no dice
In what way did it fail - can you show the script you used and the error.

To find the perlbrew perl open up Terminal and type in:

echo $PERLBREW_PATH Sample output: /Users/user/perl5/perlbrew/bin:/Users/user/perl5/perlbrew/perls/perl-5 +.14.1/bin
There may be another way to do this but using that output you would have the first line of your script:
#!/Users/user/perl5/perlbrew/perls/perl-5.14.1/bin/perl5.14.1

Replies are listed 'Best First'.
Re^4: Can't locate Email/MIME.pm in @INC
by kcott (Archbishop) on Mar 22, 2014 at 07:11 UTC
    "#!/Users/user/perl5/perlbrew/perls/perl-5.14.1/bin/perl5.14.1"

    That shebang line locks the script into using a single version of Perl. While that might be what you want in some circumstances, I don't think that would be the norm.

    This shebang line (which I indicated in "Re^3: Can't locate Email/MIME.pm in @INC" below) allows you to upgrade Perl and use it with all your scripts without having to edit every one of those scripts.

    #!/usr/bin/env perl

    It also makes it easy to test your current codebase with new versions of Perl: a single "perlbrew switch new-perl-version" to check for backward-compatibility and a single "perlbrew switch old-perl-version" to rollback (if that's required).

    -- Ken