Re: finding modules via @INC

2009-03-06 Thread Rob Dixon
Jerald Sheets wrote: > On Mar 4, 2009, at 7:38 AM, Gunnar Hjalmarsson wrote: >> Jerald Sheets wrote: >>> >>> In your code you can specify the directory location of the pm: >>> use lib '/path/to/pm'; >> >> That makes no sense. It would cause Perl to look for >> >>/path/to/pm/XML/Handler/YAWriter

Re: finding modules via @INC

2009-03-04 Thread Gunnar Hjalmarsson
Jerald Sheets wrote: Gunnar Hjalmarsson wrote: Jerald Sheets wrote: In your code you can specify the directory location of the pm: use lib '/path/to/pm'; That makes no sense. It would cause Perl to look for /path/to/pm/XML/Handler/YAWriter.pm and the module would not be found. Note t

Re: finding modules via @INC

2009-03-04 Thread Jerald Sheets
Note that I took that example from a functioning program I have in the CNN environment. You say it doesn't work, I have six million viewers who say it does. enjoy. --j On Mar 4, 2009, at 7:38 AM, Gunnar Hjalmarsson wrote: Jerald Sheets wrote: In your code you can specify the directory

Re: finding modules via @INC

2009-03-04 Thread Gunnar Hjalmarsson
Jerald Sheets wrote: In your code you can specify the directory location of the pm: use lib '/path/to/pm'; That makes no sense. It would cause Perl to look for /path/to/pm/XML/Handler/YAWriter.pm and the module would not be found. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bi

Re: finding modules via @INC

2009-03-04 Thread Jerald Sheets
Keep in mind that perl only searches his known paths for perl modules. (/usr/lib in Linux, /Library/Perl in mac, etc.) In your code you can specify the directory location of the pm: use lib '/path/to/pm'; But then it'd need to be run from precisely the same place each and every time no mat

Re: finding modules via @INC

2009-03-04 Thread Gunnar Hjalmarsson
sys...@wowway.com wrote: I'm trying to use an XML pretty printer called xmlpretty ... http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/5407c504591e0c4e Do not multi-post!! http://lipas.uwasa.fi/~ts/http/crospost.html -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi

Re: finding modules via @INC

2009-03-04 Thread Dermot
2009/3/3 : > I'm trying to use an XML pretty printer called xmlpretty on UNIX that > I downloaded from the net.  xmlpretty is a simple perl program that > uses a module called YAWriter.pm that came with the package.  So > xmlpretty has: > > use XML::Handler::YAWriter; > > However, with xmlpretty a

finding modules via @INC

2009-03-04 Thread sysdrk
I'm trying to use an XML pretty printer called xmlpretty on UNIX that I downloaded from the net. xmlpretty is a simple perl program that uses a module called YAWriter.pm that came with the package. So xmlpretty has: use XML::Handler::YAWriter; However, with xmlpretty and YAWriter.pm in the same

finding modules via @INC

2009-03-04 Thread sysdrk
I'm trying to use an XML pretty printer called xmlpretty on UNIX that I downloaded from the net. xmlpretty is a simple perl program that uses a module called YAWriter.pm that came with the package. So xmlpretty has: use XML::Handler::YAWriter; However, with xmlpretty and YAWriter.pm in the same

Re: finding modules for perl on Linux

2006-01-14 Thread Owen Cook
On Sat, 14 Jan 2006, John Meyer wrote: > > Duh, silly me, forgot the command. > BTW, what's the difference when you run cpan as user v as root. I > assume that the modules are only installed locally then, right. Modules can be installed locally, but if you have access, they are best installed

Re: finding modules for perl on Linux

2006-01-14 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Duh, silly me, forgot the command. BTW, what's the difference when you run cpan as user v as root. I assume that the modules are only installed locally then, right. Owen Cook wrote: > On Sat, 14 Jan 2006, John Meyer wrote: > > Yes, but that seems to

Re: finding modules for perl on Linux

2006-01-14 Thread Owen Cook
On Sat, 14 Jan 2006, John Meyer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, Is there anything like the CPAN program on Linux that lets you > search for and download perl modules for Linux? Yes, but that seems to be a bit of a strange question. As a user, what happens when

finding modules for perl on Linux

2006-01-14 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Is there anything like the CPAN program on Linux that lets you search for and download perl modules for Linux? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDy

perl v. perl5 was Re: Finding modules . . .

2002-08-16 Thread drieux
On Thursday, August 15, 2002, at 01:02 , John Almberg wrote: > Thanks, that worked. The path is: > > /usr/lib/perl5.6/site-perl/5.6.1/Mail/Mailer.pm > > Now here's the funny part . . . > > running 'perl5 test.cgi' works, but running 'perl test.cgi' yields the > error. I'm guessing that these two

RE: Finding modules . . .

2002-08-15 Thread John Almberg
]] # Sent: Thursday, August 15, 2002 4:02 PM # To: [EMAIL PROTECTED] # Subject: RE: Finding modules . . . # # # Thanks, that worked. The path is: # # /usr/lib/perl5.6/site-perl/5.6.1/Mail/Mailer.pm # # Now here's the funny part . . . # # running 'perl5 test.cgi' works, but running

Re: Finding modules . . .

2002-08-15 Thread Chas Owens
On Thu, 2002-08-15 at 15:39, John Almberg wrote: > Luckily this is a beginning perl list, because I'm sure this is a real > beginners question . . . > > I believe I have the Mail::Mailer module installed on my system because when > I run 'perldoc Mail::Mailer' I get the documentation. However, wh

RE: Finding modules . . .

2002-08-15 Thread John Almberg
have root permission.) -- John -Original Message- From: John Pitchko [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 3:48 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Finding modules . . . Try find / -name Mailer.pm It should tell you where it is.

Re: Finding modules . . .

2002-08-15 Thread John Pitchko
Try find / -name Mailer.pm It should tell you where it is. John Pitchko Data Services Saskatchewan Government Insurance >>> "John Almberg" <[EMAIL PROTECTED]> 08/15/02 01:39pm >>> Luckily this is a beginning perl list, because I'm sure this is a real beginners question . . . I believe I have

Finding modules . . .

2002-08-15 Thread John Almberg
Luckily this is a beginning perl list, because I'm sure this is a real beginners question . . . I believe I have the Mail::Mailer module installed on my system because when I run 'perldoc Mail::Mailer' I get the documentation. However, when I try to 'use' the module, I get the following error mes