On Linux systems, how do you normally install Perl modules that you download as .pm files? For example, I recently downloaded Net::Telnet::Cisco and I placed the Cisco.pm file in the /usr/lib/perl5/5.8.0/Net/ directory. I got this to work, but this can't be the right way to do it. In the script, I had to....
use Net::Cisco;
$session = Net::Telnet::Cisco->new(Host => $router);
I'm trying to install another module now to generate random passwords, String::Random. I placed the Random.pm file in /usr/lib/perl5/5.8.0/ and in the script...
use Random;
$pass = new String::Random;
print "Your password is ", $pass->randpattern("CCcc!ccn"), "\n";
This can't be right, what is the proper way of doing this?
Thanks,
Chris
use Net::Cisco;
$session = Net::Telnet::Cisco->new(Host => $router);
I'm trying to install another module now to generate random passwords, String::Random. I placed the Random.pm file in /usr/lib/perl5/5.8.0/ and in the script...
use Random;
$pass = new String::Random;
print "Your password is ", $pass->randpattern("CCcc!ccn"), "\n";
This can't be right, what is the proper way of doing this?
Thanks,
Chris