I am trying to make a perl script that uses email.

The forth line of my script is:

use Email::Valid;

And I get this error:

Can't locate Email/Valid.pm in @INC (@INC contains: /opt/local/lib/perl5/5.10.0/darwin-2level /opt/local/lib/perl5/5.10.0 /opt/local/lib/perl5/site_perl/5.10.0/darwin-2level /opt/local/lib/perl5/site_perl/5.10.0 /opt/local/lib/perl5/vendor_perl/5.10.0/darwin-2level /opt/local/lib/perl5/vendor_perl/5.10.0 /opt/local/lib/perl5/vendor_perl .) at script.pl line 4.
BEGIN failed--compilation aborted at script.pl line 4.

after running

perl5.10 script.pl

How do i fix this problem???
Please help!!

You install the module or use the lib pragma to run the module from @INC without actually installing it.

I don't know how you install modules on a MAC, maybe you use the CPAN shell. You can read the "lib" pragmas documentation online:

http://perldoc.perl.org/lib.html