Re: module dependency

2024-05-16 Thread sisyphus
At the command prompt, run: perl -le 'use Net::SMTPS; print for keys %INC;' That will tell you the names of all of the modules that get loaded when you load Net::SMTP. Cheers, Rob On Thu, May 16, 2024 at 11:07 PM Netwinds wrote: > greetings everybody, > > How do I know which other modules are

Re: module dependency

2024-05-16 Thread karl
Netwinds: > How do I know which other modules are required by the perl module > (like Net::SMTPS) I am using? You mean like go to cpan: https://metacpan.org/pod/Net::SMTPS and looking at the left column under dependencies ? Regards, /Karl Hammar -- To unsubscribe, e-mail: beginners-unsubscr.

Re: [solved] Re: Module to extract patterns

2017-06-13 Thread Chas. Owens
You can also look for the =~ operator and then print the next significant token: #!/usr/bin/perl use strict; use PPI; # warnings should always go last # https://stackoverflow.com/a/38639882/78259 use warnings; my $file = shift or die "Need a file name!\n"; my $document = PPI::Document->new( $f

Re: [solved] Re: Module to extract patterns

2017-06-13 Thread Lars Noodén
On 06/13/2017 05:14 PM, Chas. Owens wrote: > Two notes: > > Firstly, $document->find will return undef if no regexes are found, not an > empty arrayref, so you should say [snip] > Secondly, PPI does not catch all things that can be considered regexes, for > instance: [snip] Thanks. I appreciate

Re: [solved] Re: Module to extract patterns

2017-06-13 Thread Chas. Owens
Two notes: Firstly, $document->find will return undef if no regexes are found, not an empty arrayref, so you should say my $regex = $document->find('PPI::Token::Regexp') || []; or for my $expr ( @[ $regex || [] ] ) { or even print qq(\n$file :\n); if (my $regex = $document->find('PPI::Token:

[solved] Re: Module to extract patterns

2017-06-13 Thread Lars Noodén
Ok. Thanks, Paul and David. I think I see how I can benefit from Text::Balanced but I now have my start with PPI and can list the expressions. Regards, Lars #!/usr/bin/perl use strict; use warnings; use PPI; use Data::Dumper; my $file = shift or ( die("Need a file name!\n") ); my $document =

Re: Module to extract patterns

2017-06-13 Thread David Mertens
See also Text::Balanced and its extract_quotelike: http://search.cpan.org/~shay/Text-Balanced-2.03/lib/Text/Balanced.pm#extract_quotelike David On Tue, Jun 13, 2017 at 7:23 AM, Paul Johnson wrote: > On Tue, Jun 13, 2017 at 02:03:10PM +0300, Lars Noodén wrote: > > There are a lot of ways to wri

Re: Module to extract patterns

2017-06-13 Thread Paul Johnson
On Tue, Jun 13, 2017 at 02:03:10PM +0300, Lars Noodén wrote: > There are a lot of ways to write patterns. > Is there a module or method that can identify and extract them from a > larger bit of code regardless of style? That's not an easy problem. Fortunately, there is a module which will probab

Re: Module Not Getting Installed

2015-03-27 Thread Uri Guttman
On 03/27/2015 04:29 PM, Frank Vino wrote: Sorry Shlomi it is our own module, i am still working on this. once it is update i will get the details. you don't install your own module with cpan or related things. you just need to copy it into the proper dir. if you run perl -V it will show you

Re: Module Not Getting Installed

2015-03-27 Thread Frank Vino
Sorry Shlomi it is our own module, i am still working on this. once it is update i will get the details. -Franky On Fri, Mar 27, 2015 at 3:58 PM, Shlomi Fish wrote: > Hi Franklin, > > On Fri, 27 Mar 2015 14:00:05 +0530 > Frank Vino wrote: > > > Hi Team, > > > > When i trying to install FWCo

Re: Module Not Getting Installed

2015-03-27 Thread Shlomi Fish
Hi Franklin, On Fri, 27 Mar 2015 14:00:05 +0530 Frank Vino wrote: > Hi Team, > > When i trying to install FWConfig.pm from cpan it is saying that unable > to locate. Could you please let me know how to download this module? > I cannot find FWConfig.pm either here - https://metacpan.org/sear

Re: module installation error from cpan cli

2014-07-14 Thread Benjamin Fernandis
Thx, it works. I just reinstalled with CENTOS 7. After installing Test::More from cpan it works now. On Tue, Jul 15, 2014 at 12:22 AM, David Precious wrote: > On Tue, 15 Jul 2014 00:07:16 +1200 > Benjamin Fernandis wrote: > > > Hi, > > > > I got below error while installing Devel::Trace modul

Re: module installation error from cpan cli

2014-07-14 Thread David Precious
On Tue, 15 Jul 2014 00:07:16 +1200 Benjamin Fernandis wrote: > Hi, > > I got below error while installing Devel::Trace module to trace each > line of script like sh -x. [...] > cpan[1]> install Devel::Trace [...] > t/compile.t .. Can't locate Test/More.pm in @INC (@INC contains: [...] > what c

Re: module installation dir, site_perl, and perl -V:sitelib

2013-07-30 Thread Christophe Martin
Hello. Le 26/07/2013 20:50, Peter Gordon a écrit : On the off chance that you don't know about PERL5LIB, check http://preview.tinyurl.com/c2h35h6 I knew PERL5LIB, did not think of it at first, and, did not imagine things could be that complicated... Thanks for this very complete URL. I will u

Re: module installation dir, site_perl, and perl -V:sitelib

2013-07-26 Thread Peter Gordon
On Fri, 26 Jul 2013 08:30:25 +0200, Luca Ferrari wrote: >On Thu, Jul 25, 2013 at 2:15 PM, Christophe Martin > wrote: >>Hello, >> >>Le 24/07/13 20:29, Luca Ferrari a écrit : >>>On Wed, Jul 24, 2013 at 2:28 PM, Christophe Martin >>> wrote: >>The question remains. How can I get the name of a/the <>nam

Re: module installation dir, site_perl, and perl -V:sitelib

2013-07-25 Thread Luca Ferrari
On Thu, Jul 25, 2013 at 2:15 PM, Christophe Martin wrote: > Hello, > > Le 24/07/13 20:29, Luca Ferrari a écrit : >> On Wed, Jul 24, 2013 at 2:28 PM, Christophe Martin >> wrote: > The question remains. How can I get the name of a/the < name in @INC, not version/arch specific where I can install lo

Re: module installation dir, site_perl, and perl -V:sitelib

2013-07-25 Thread Christophe Martin
Hello, Le 24/07/13 20:29, Luca Ferrari a écrit : > On Wed, Jul 24, 2013 at 2:28 PM, Christophe Martin > wrote: > >> Do all (or 95%) of perl installation have a site_perl dir ? > > I'll bet the answer is not. However, what would make sitelib so much > important with regard to other @INC entries?

Re: module installation dir, site_perl, and perl -V:sitelib

2013-07-24 Thread Luca Ferrari
On Wed, Jul 24, 2013 at 2:28 PM, Christophe Martin wrote: > Do all (or 95%) of perl installation have a site_perl dir ? I'll bet the answer is not. However, what would make sitelib so much important with regard to other @INC entries? I mean, using a non-arch directory is fine without any regard

Re: module versions

2013-05-15 Thread shawn wilson
On Wed, May 15, 2013 at 4:13 PM, Ron Bergin wrote: > shawn wilson wrote: >> I asked this in #perl-help and was told that by the time perl checked >> the version, the module was already loaded - is there a way to check >> the version without completely loading the module so that when one >> failed,

Re: module versions

2013-05-15 Thread Ron Bergin
shawn wilson wrote: > I asked this in #perl-help and was told that by the time perl checked > the version, the module was already loaded - is there a way to check > the version without completely loading the module so that when one > failed, I could move on to another module of the same name whose

Re: module versions

2013-05-15 Thread Peter Eztta
How about using ExtUtils::MakeMaker or Module::Build and checking for the required version at build time? I suppose this doesn't address the desire to use a different version if the one you're looking for isn't present though... Regards, Peter H. Ezetta On Wed, May 15, 2013 at 12:55:25PM -070

Re: module versions

2013-05-15 Thread shawn wilson
On Wed, May 15, 2013 at 3:28 PM, Octavian Rasnita wrote: > From: "shawn wilson" > > > >> I asked this in #perl-help and was told that by the time perl checked >> the version, the module was already loaded - is there a way to check >> the version without completely loading the module so that when

Re: module versions

2013-05-15 Thread Octavian Rasnita
From: "shawn wilson" I asked this in #perl-help and was told that by the time perl checked the version, the module was already loaded - is there a way to check the version without completely loading the module so that when one failed, I could move on to another module of the same name whose ve

Re: Module deleted from cpan

2012-09-29 Thread Bob goolsby
M, this sounds like you have found yourself a Chance For Glory. You might contact the Author of the deprecated module and ask politely if you can take it over. The best Maintainer of code on CPAN is someone who is actively interested in the useability and stability of the module. B On Sat,

Re: Module deleted from cpan

2012-09-29 Thread Michiel Beijen
Hi, On Sat, Sep 29, 2012 at 4:30 PM, Ricardo Pais Oliveira wrote: > On Sat, Sep 29, 2012 at 2:02 PM, David Precious wrote: >> If you're curious about why it was removed from CPAN, you could try >> contacting the author themselves. I would imagine, though, that the >> author decided there were b

Re: Module deleted from cpan

2012-09-29 Thread Ricardo Pais Oliveira
On Sat, Sep 29, 2012 at 2:02 PM, David Precious wrote: > On Sat, 29 Sep 2012 13:35:10 +0100 > Ricardo Pais Oliveira wrote: > > > Hi! > > > > I am using the module WWW::Vimeo::Simple::Video for this small > > personal project http://visualworlds.ricardopaisoliveira.com but it > > stopped working a

Re: Module deleted from cpan

2012-09-29 Thread David Precious
On Sat, 29 Sep 2012 13:35:10 +0100 Ricardo Pais Oliveira wrote: > Hi! > > I am using the module WWW::Vimeo::Simple::Video for this small > personal project http://visualworlds.ricardopaisoliveira.com but it > stopped working and when I looked on cpan the module was gone. > > I'm new to this wor

Re: Module error

2012-02-15 Thread Shawn H Corey
On 12-02-15 01:13 PM, Punit Jain wrote: Hi, I am running my perl script and using some perl modules like below :- use File::Path qw(mkpath); use File::Rsync; my $rsync = '/opt/zimbra/rsync/bin/rsync'; when I run the script using perl scriptname --> then it runs fine, however when I run throu

Re: Module error

2012-02-15 Thread Jim Gibson
On 2/15/12 Wed Feb 15, 2012 10:56 AM, "Shlomi Fish" scribbled: > at the risk of starting a flame-war, you should not encourage people to write > their scripts in C-shell (not that using it as a login shell is too > recommended either), because it is a braindead shell with poorly designed > sema

Re: Module error

2012-02-15 Thread Shlomi Fish
Hello Jim, On Wed, 15 Feb 2012 10:28:23 -0800 Jim Gibson wrote: > On 2/15/12 Wed Feb 15, 2012 10:13 AM, "Punit Jain" > scribbled: > > > Hi, > > > > I am running my perl script and using some perl modules like below :- > > > > use File::Path qw(mkpath); > > use File::Rsync; > > my $rsync =

Re: Module error

2012-02-15 Thread Jim Gibson
On 2/15/12 Wed Feb 15, 2012 10:13 AM, "Punit Jain" scribbled: > Hi, > > I am running my perl script and using some perl modules like below :- > > use File::Path qw(mkpath); > use File::Rsync; > my $rsync = '/opt/zimbra/rsync/bin/rsync'; > > > when I run the script using > perl scriptname --

Re: Module error

2012-02-15 Thread John SJ Anderson
> I am running my perl script and using some perl modules like below :- > > use File::Path qw(mkpath); > use File::Rsync; > my $rsync = '/opt/zimbra/rsync/bin/rsync'; > > > when I run the script using > perl scriptname --> then it runs fine, however when I run through crontab, it > get this er

Re: module for development

2011-12-15 Thread Ken Peng
2011/12/15 Shlomi Fish : > > See: > > http://search.cpan.org/dist/Devel-TraceUse/ > Great module, the result it prints is good. Thanks Shlomi. Ken. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: module for development

2011-12-15 Thread Shlomi Fish
Hi Ken, On Thu, 15 Dec 2011 21:01:28 +0800 Ken Peng wrote: > Hello, > > Which module could show the order of loading modules? > For example, > > use Foo; > use Bar; > > BEGIN { > require A; > } > > I want to know in what order Perl loads these modules. > See: http://search.cpan.org/d

Re: module for development

2011-12-15 Thread Shawn H Corey
On 11-12-15 10:09 AM, Brian Fraser wrote: Close, but that won't work, because keys in %INC are paths, and you are still leaving the ::'s unchanged. use 5.014; use File::Basename; # must be before `use lib` use lib dirname( $INC{ __PACKAGE__ =~ s!::!/!r . '.pm' } ); That should do. Plus more mang

Re: module for development

2011-12-15 Thread Ken Peng
> Hm, that's not quite right. It updates %INC as soon as it can open a filehandle and start reading, but I don't think it ever updates @INC unless you ask it to (e.g. by 'use lib' or -I on the command line, or mucking with it manually). > sorry my typo. it is %inc not @inc. if perl updates %inc a

Re: module for development

2011-12-15 Thread Brian Fraser
On Thu, Dec 15, 2011 at 12:00 PM, Shawn H Corey wrote: > On 11-12-15 09:02 AM, Ken Peng wrote: > >> BEGIN { >> my $module_dir = $INC{'Net/Evernote.pm'}; >> $module_dir =~ s/Evernote\.pm$//; >> unshift @INC,$module_dir; >> } >> >> This begin block setup the @INC by adding a path as the

Re: module for development

2011-12-15 Thread Shawn H Corey
On 11-12-15 09:02 AM, Ken Peng wrote: BEGIN { my $module_dir = $INC{'Net/Evernote.pm'}; $module_dir =~ s/Evernote\.pm$//; unshift @INC,$module_dir; } This begin block setup the @INC by adding a path as the module itself, it does work. Try this instead (no BEGIN needed): package

Re: module for development

2011-12-15 Thread Brian Fraser
On Thu, Dec 15, 2011 at 11:02 AM, Ken Peng wrote: > 2011/12/15 Brian Fraser : > > > > The second way is using an @INC hook, which is explained in perldoc -f > > require. Here's a pretty simple form: > > > > BEGIN { unshift @INC, sub { say "@_[0..$#_]"; return } } > > > > But the real question her

Re: module for development

2011-12-15 Thread Jenda Krynicky
From: Brian Fraser > On Thu, Dec 15, 2011 at 10:09 AM, shawn wilson wrote: > > > Strace stat(64) should do you. > > On Dec 15, 2011 8:03 AM, "Ken Peng" wrote: > > > > > Hello, > > > > > > Which module could show the order of loading modules? > > > For example, > > > > > > use Foo; > > > use Bar

Re: module for development

2011-12-15 Thread Ken Peng
2011/12/15 shawn wilson : > > hence why i recommended strace so that you could see where perl looks > for modules and in what order. > > that said, if someone has a way inside perl to do the same thing, it > might be cool to know. Yup I did the strace as you suggested and got some useful stuff. T

Re: module for development

2011-12-15 Thread shawn wilson
On Thu, Dec 15, 2011 at 09:02, Ken Peng wrote: > 2011/12/15 Brian Fraser : >> > Since these modules exist in  the same library dir as Evernote.pm. > (in my OS it's /usr/local/share/perl/5.10.0/Net/Evernote.pm) > But their names are not began with "Net::“ as they should be. > (in my OS,  they are

Re: module for development

2011-12-15 Thread Ken Peng
2011/12/15 Brian Fraser : > > The second way is using an @INC hook, which is explained in perldoc -f > require. Here's a pretty simple form: > > BEGIN { unshift @INC, sub { say "@_[0..$#_]"; return } } > > But the real question here is, why do you need to know this? > Thanks Brian, your info is m

Re: module for development

2011-12-15 Thread Brian Fraser
On Thu, Dec 15, 2011 at 10:09 AM, shawn wilson wrote: > Strace stat(64) should do you. > On Dec 15, 2011 8:03 AM, "Ken Peng" wrote: > > > Hello, > > > > Which module could show the order of loading modules? > > For example, > > > > use Foo; > > use Bar; > > > > BEGIN { > > require A; > > } >

Re: module for development

2011-12-15 Thread shawn wilson
Strace stat(64) should do you. On Dec 15, 2011 8:03 AM, "Ken Peng" wrote: > Hello, > > Which module could show the order of loading modules? > For example, > > use Foo; > use Bar; > > BEGIN { > require A; > } > > I want to know in what order Perl loads these modules. > > Thanks. > > -- > To u

Re: module is installed but getting error

2011-11-22 Thread Kenneth Wolcott
On Tue, Nov 22, 2011 at 12:47, Rajeev Prasad wrote: > thanks, that was the quickest resolve for me on this LIST ever. thank you! > > From: Kenneth Wolcott > To: Rajeev Prasad > Cc: perl list > Sent: Tuesday, November 22, 2011 2:35 PM > S

Re: module is installed but getting error

2011-11-22 Thread Rajeev Prasad
thanks, that was the quickest resolve for me on this LIST ever. thank you! From: Kenneth Wolcott To: Rajeev Prasad Cc: perl list Sent: Tuesday, November 22, 2011 2:35 PM Subject: Re: module is installed but getting error On Tue, Nov 22, 2011 at 12:31

Re: module is installed but getting error

2011-11-22 Thread Kenneth Wolcott
On Tue, Nov 22, 2011 at 12:31, Rajeev Prasad wrote: > getting this error: > > Can't locate Http/Cookies.pm in @INC (@INC contains: /etc/perl > /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 > /usr/local/lib/site_

Re: Module for determining OS type, OS Version, and Processor Architecture

2010-03-11 Thread Paul Johnson
On Wed, Mar 10, 2010 at 01:07:00PM -0800, Nik J wrote: > All, > > I'm searching for a Perl module that will make it easy determine the > following: > > OS Type: >windows >*unix > > OS Version: > WindowXP, Windows Vista, Windows Server 2003, etc. >Solaris 5.10, Solaris 5.8, Linux

Re: Module for determining OS type, OS Version, and Processor Architecture

2010-03-11 Thread trapd00r
On 10/03/10 13:07 -0800, Nik J wrote: I'm searching for a Perl module that will make it easy determine the following: OS Type: windows *unix $^O; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Module for determining OS type, OS Version, and Processor Architecture

2010-03-11 Thread Shawn H Corey
trapd...@trapd00r.se wrote: > On 10/03/10 13:07 -0800, Nik J wrote: >> I'm searching for a Perl module that will make it easy determine the >> following: >> >> OS Type: >> windows >> *unix >> > print $^0; > That would be $^O(dollar, control-capital-O) or: perl -E 'use English q(-no_matc

Re: Module for determining OS type, OS Version, and Processor Architecture

2010-03-11 Thread trapd00r
On 10/03/10 13:07 -0800, Nik J wrote: I'm searching for a Perl module that will make it easy determine the following: OS Type: windows *unix print $^0; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: module installation

2010-03-09 Thread Sisyphus
- Original Message - From: "Jyoti" To: "Sisyphus" Cc: Sent: Wednesday, March 10, 2010 4:50 PM Subject: Re: module installation Thanks for reply. I followed ur suggested steps but still getting same error. I copied the error below. C:\strawberry\per

Re: module installation

2010-03-09 Thread Jyoti
Thanks for reply. I followed ur suggested steps but still getting same error. I copied the error below. C:\strawberry\perl\libwin32-0.29>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for libwin32 C:\strawberry\perl\libwin32-0.29>nmake test Microsoft (R) Program

Re: module installation

2010-03-09 Thread Sisyphus
- Original Message - From: "Jyoti" To: Sent: Wednesday, March 10, 2010 3:46 PM Subject: module installation i want to install libwin32-0.191 on my windows XP... That's a fairly old version (July 2002). Is there a reason that you wish to install that particular version ? Source

Re: module for accessing MSSQL

2009-07-07 Thread practicalperl
Thanks all for the helps. Now I know there are at least two correct ways for it. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: module for accessing MSSQL

2009-07-07 Thread Brent Clark
practicalp...@gmail.com wrote: Hello, what's the standard module for accessing MSSQL? I searched on CPAN but found a lot. The program should be run on Linux, not Windows. Thanks. Hiya I use perl on with FreeBSD and Linux but via Freetds. It works and it works very well. You will need DB

Re: module for accessing MSSQL

2009-07-07 Thread Dan
On Tue, 2009-07-07 at 16:50 +0800, practicalp...@gmail.com wrote: > On Tue, Jul 7, 2009 at 4:46 PM, Cristi Ocolisan wrote: > > Hi, > > > > > > > > You'll need DBD::ODBC module. > > > > thanks. > can DBD::ODBC be run under Linux? Sure does. You'll need freetds, and setting up the odbc.ini file is

Re: module for accessing MSSQL

2009-07-07 Thread practicalperl
On Tue, Jul 7, 2009 at 4:46 PM, Cristi Ocolisan wrote: > Hi, > > > > You'll need DBD::ODBC module. > thanks. can DBD::ODBC be run under Linux? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: module for accessing MSSQL

2009-07-07 Thread Owen
> On Tue, Jul 7, 2009 at 4:36 PM, Owen wrote: >> >> >>> what's the standard module for accessing MSSQL? >>> I searched on CPAN but found a lot. >>> The program should be run on Linux, not Windows. >>> Thanks. >> >> >> >> >> You probably want to install DBI and then DBD-mysql >> > > sorry, I said M

RE: module for accessing MSSQL

2009-07-07 Thread Cristi Ocolisan
bject: Re: module for accessing MSSQL On Tue, Jul 7, 2009 at 4:36 PM, Owen wrote: > > >> what's the standard module for accessing MSSQL? >> I searched on CPAN but found a lot. >> The program should be run on Linux, not Windows. >> Thanks. > >

Re: module for accessing MSSQL

2009-07-07 Thread Gurunandan R. Bhat
If you are on a Linux server then DBD::Sybase is your best bet. It uses freetds to connect to MS-SQL server. If on a Windows then DBD::ODBC is your friend. REgards Guru On Tue, 2009-07-07 at 16:11 +0800, practicalp...@gmail.com wrote: > Hello, > > what's the standard module for accessing MSSQ

Re: module for accessing MSSQL

2009-07-07 Thread practicalperl
On Tue, Jul 7, 2009 at 4:36 PM, Owen wrote: > > >> what's the standard module for accessing MSSQL? >> I searched on CPAN but found a lot. >> The program should be run on Linux, not Windows. >> Thanks. > > > > > You probably want to install DBI and then DBD-mysql > sorry, I said MSSQL not Mysql. -

Re: module for accessing MSSQL

2009-07-07 Thread Owen
> what's the standard module for accessing MSSQL? > I searched on CPAN but found a lot. > The program should be run on Linux, not Windows. > Thanks. You probably want to install DBI and then DBD-mysql Once you have installed DBI, read its documentation. It will give you lots of information.

Re: module to work with csv files

2009-03-01 Thread Jenda Krynicky
Date sent: Sun, 1 Mar 2009 19:52:02 +0530 Subject:module to work with csv files From: monnappa appaiah To: Perl Beginners > Hi all, > > can somebody please suggest me a module to work with csv > files...majority of the function i use manually is sort, unique, piv

Re: module to work with csv files

2009-03-01 Thread Lauri Nikkinen
Hi, Try these use Text::CSV; use Text::CSV_XS; use Tie::Handle::CSV; -L 2009/3/1 monnappa appaiah : > Hi all, > >         can somebody please suggest me a module to work with csv > files...majority of the function i use manually is sort, unique, pivot > table and also i shud be able to read

Re: Module location - auto vs elsewhere

2008-11-28 Thread Dermot
2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: > From: Dermot <[EMAIL PROTECTED]> >> 2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: >> > From: Dermot <[EMAIL PROTECTED]> >> >> > >> > Yes there is something special. The loadable object (.so for unix, >> > .dll for windows) for >> > /.../perl/lib/My

Re: Module location - auto vs elsewhere

2008-11-27 Thread Jenda Krynicky
From: Dermot <[EMAIL PROTECTED]> > 2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: > > From: Dermot <[EMAIL PROTECTED]> > > > > > Yes there is something special. The loadable object (.so for unix, > > .dll for windows) for > > /.../perl/lib/MyApp2.pm > > is looked up in > > /.../perl/lib/auto/MyA

Re: Module location - auto vs elsewhere

2008-11-27 Thread Dermot
2008/11/27 Jenda Krynicky <[EMAIL PROTECTED]>: > From: Dermot <[EMAIL PROTECTED]> > > Yes there is something special. The loadable object (.so for unix, > .dll for windows) for > /.../perl/lib/MyApp2.pm > is looked up in > /.../perl/lib/auto/MyApp2/MyApp2.so > > In either case you'd better insta

Re: Module location - auto vs elsewhere

2008-11-27 Thread Jenda Krynicky
From: Dermot <[EMAIL PROTECTED]> > I am trying to copy an application from one server to another but have > hit a problem. > > I haven't completely honoured the file structure and I wonder if that > why I am getting a error from DynaLoader. The error is > > Can't load '/usr/local/lib/site_perl/My

Re: Module location - auto vs elsewhere

2008-11-27 Thread Dermot
2008/11/27 kevin liu <[EMAIL PROTECTED]>: > you might need to install relative library, in your case it is > '/usr/local/lib/site_perl/MyApp2.so', you can locate to that > directory to check if the library it there, if not, get the library > installed. I did install it. Well, I copied the MyApp.s

Re: Module installation through CPAN shell problem

2008-08-21 Thread yitzle
On Thu, Aug 21, 2008 at 1:08 PM, Periklis <[EMAIL PROTECTED]> wrote: > Hi all, > > I have the following problem: > Trying to install a module through the CPAN utility, I got an error message > of not having the right to acces some directories and the installation failed. > > My question is how sho

Re: module question

2008-06-14 Thread Jeff Peng
On Sun, Jun 15, 2008 at 2:19 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > > thank you! it works now. > > First time ever using our.. I read about it but never had to use it till > now.. just have to read up on it more. > You may also read this classical article for Perl's variable scope: http:/

Re: module question

2008-06-14 Thread Richard Lee
Jeff Peng wrote: On Sat, Jun 14, 2008 at 11:21 PM, Richard Lee <[EMAIL PROTECTED]> wrote: trying to follow some modules examples.. but have a quick quesiton Below pm works if I don't use strict and use @ISA and @EXPORT.. but not when I use strict and my @ISA and my @EXPORT @I

Re: module question

2008-06-14 Thread Jeff Peng
On Sat, Jun 14, 2008 at 11:21 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > trying to follow some modules examples.. but have a quick quesiton > > Below pm works if I don't use strict and use @ISA and @EXPORT.. but not > when I use strict and my @ISA and my @EXPORT > @ISA and @EXPORT are p

Re: Module help

2007-12-20 Thread Chas. Owens
On Dec 20, 2007 2:01 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 12/20/07, Andy Dixon <[EMAIL PROTECTED]> wrote: > > > sub test($) { > > Subroutine prototypes, like "($)" here, generally cause more harm than > good, alas. Most programmers should avoid using them in most cases. snip You should

Re: Module help

2007-12-20 Thread Andy Dixon
Thanks everyone who helped - I am new to perl, and after coding with php and various other languages, I have not yet fully grasped some of perl's concepts...! Thanks once again!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org

Re: Module help

2007-12-20 Thread John W . Krahn
On Thursday 20 December 2007 10:36, Andy Dixon wrote: > > Hello, Hello, > I have written a small module with a function that returns some text. > > However, when I run it, from a test script, I get: > > Undefined subroutine &external::RETURN called at external.pm line 41. > > The subroutine is th

Re: Module help

2007-12-20 Thread Tom Phoenix
On 12/20/07, Andy Dixon <[EMAIL PROTECTED]> wrote: > sub test($) { Subroutine prototypes, like "($)" here, generally cause more harm than good, alas. Most programmers should avoid using them in most cases. > my $data = @_; You're using the "name" of the array in scalar context; this gives the n

RE: Module help

2007-12-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Andy Dixon [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 20, 2007 10:37 > To: Perl beginners > Subject: Module help > > Hello, > > I have written a small module with a function that returns some text. > > However, when I run it, from a test script, I

Re: Module Madness (must I install all these modules and libraries to get a graph?)

2007-07-27 Thread Inventor
On Jul 26, 5:24 pm, [EMAIL PROTECTED] (Paul Johnson) wrote: > On Thu, Jul 26, 2007 at 09:40:36AM -0700, Inventor wrote: > > On Jul 26, 8:26 am, [EMAIL PROTECTED] (Mr. Shawn H. Corey) wrote: > > > > Welcome to Dependency Hell. (You know you're in trouble when there is a > > > derogatory nickname fo

Re: Module Madness (must I install all these modules and libraries to get a graph?)

2007-07-26 Thread Paul Johnson
On Thu, Jul 26, 2007 at 09:40:36AM -0700, Inventor wrote: > On Jul 26, 8:26 am, [EMAIL PROTECTED] (Mr. Shawn H. Corey) wrote: > > > > Welcome to Dependency Hell. (You know you're in trouble when there is a > > derogatory nickname for what you're doing.) > > > > You know what, rather than deal wi

Re: Module Madness (must I install all these modules and libraries to get a graph?)

2007-07-26 Thread Inventor
On Jul 26, 8:26 am, [EMAIL PROTECTED] (Mr. Shawn H. Corey) wrote: > > Welcome to Dependency Hell. (You know you're in trouble when there is a > derogatory nickname for what you're doing.) > You know what, rather than deal with Dependency Hell in multiple environments, this morning I wrote my own

Re: Module Madness (must I install all these modules and libraries to get a graph?)

2007-07-26 Thread Mr. Shawn H. Corey
Inventor wrote: Must I really install the 3 modules plus the libraries b, c, d, and f above just to draw a simple jpg scatter plot? I don't even know how to install a library, just a module. When they say "library" in the README, do they really mean "module"? Welcome to Dependency Hell. (You

Re: Module question

2007-05-24 Thread Jeff Pang
David Moreno Garza 写道: Jeff Pang wrote: @EXPORT was used for exporting symbol (methods or variables) by default. When you say, use base 'Exporter'; our @EXPORT = qw/&mysub/; .. then mysub() would be exported into caller's name space defaultly. Would that also work using: our @EXPORT = qw/mysu

Re: Module question

2007-05-24 Thread David Moreno Garza
Jeff Pang wrote: > @EXPORT was used for exporting symbol (methods or variables) by default. > When you say, > use base 'Exporter'; > our @EXPORT = qw/&mysub/; > .. > then mysub() would be exported into caller's name space defaultly. Would that also work using: our @EXPORT = qw/mysub/; ? Or is

Re: Module question

2007-05-17 Thread Jeff Pang
Robert Hicks 写道: Is @EXPORT_OK for those items you want to import by "name" and %EXPORT_TAGS for those items you want to group like :all or :select? Almost right. What is @EXPORT used for then if that is the case above? @EXPORT was used for exporting symbol (methods or variables) by defa

Re: module installation problem

2007-04-24 Thread I . B .
I will try to reproduce this again. I am sure it was Net::FTP::Recursive thank you for response ~igy On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I think that you have a little mistake Run perl -MNet::FTP::Recursive -e "1;" instead of perl -MNet::Ftp::Recursive -e "1;". Yo

Re: module installation problem

2007-04-24 Thread yaron
Hi, I think that you have a little mistake Run perl -MNet::FTP::Recursive -e "1;" instead of perl -MNet::Ftp::Recursive -e "1;". Yours, Yaron Kahanovitch - Original Message - From: "I.B." <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Wednesday, April 25, 2007 7:27:18 AM (GMT+0200) Au

Re: module installation problem

2007-04-24 Thread Chas Owens
On 4/25/07, I. B. <[EMAIL PROTECTED]> wrote: snip # it exists $ ls /usr/local/share/perl/5.8.7/Net/FTP/Recursive.pm /usr/local/share/perl/5.8.7/Net/FTP/Recursive.pm snip Does anyone know if this is some kind of cache I am not aware about? thank you in advance. snip Make sure the file is readabl

Re: Module for pulling actual queries from search engine URLs?

2007-03-16 Thread Tom Phoenix
On 3/15/07, Grant <[EMAIL PROTECTED]> wrote: > > Does anyone know of a perl module for pulling the actual search > > queries from search engine URLs? Have you looked on CPAN yet? I found this, but there may be something better: http://search.cpan.org/~sden/URI-ParseSearchString-1.9/lib/UR

Re: Module for pulling actual queries from search engine URLs?

2007-03-16 Thread Grant
> > > Does anyone know of a perl module for pulling the actual search > > > queries from search engine URLs? Have you looked on CPAN yet? I found this, but there may be something better: http://search.cpan.org/~sden/URI-ParseSearchString-1.9/lib/URI/ParseSearchString.pm Oh man that looks

Re: Module for pulling actual queries from search engine URLs?

2007-03-15 Thread Grant
> Does anyone know of a perl module for pulling the actual search > queries from search engine URLs? It seems like writing a good regexp > for that would be pretty tough. The URLs vary a lot. Don't use a regexp for this, or at least look at Regexp::Common::URI, but first try URI, as Randal did

Re: Module for pulling actual queries from search engine URLs?

2007-03-15 Thread Jeff Pang
>Don't use a regexp for this, or at least look at Regexp::Common::URI, >but first try URI, as Randal did suggest. Also you may need the module of "URI::Escape". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Module for pulling actual queries from search engine URLs?

2007-03-15 Thread Grant
> Does anyone know of a perl module for pulling the actual search > queries from search engine URLs? It seems like writing a good regexp > for that would be pretty tough. The URLs vary a lot. Don't use a regexp for this, or at least look at Regexp::Common::URI, but first try URI, as Randal did

Re: Module for pulling actual queries from search engine URLs?

2007-03-15 Thread Dr.Ruud
Grant schreef: > Does anyone know of a perl module for pulling the actual search > queries from search engine URLs? It seems like writing a good regexp > for that would be pretty tough. The URLs vary a lot. Don't use a regexp for this, or at least look at Regexp::Common::URI, but first try URI,

Re: Module names and directory structure

2007-02-05 Thread Robert Hicks
Tom Phoenix wrote: On 2/5/07, Robert Hicks <[EMAIL PROTECTED]> wrote: If I have a CGI script and I have my modules in a local directory ("lib") would the directory structure be like this: Trakker.pm Trakker::Dispatch.pm Takker::SQL.pm Trakker::Conf.pm /lib/Trakker.pm /lib/Trakker/Dispatch.pm

Re: Module names and directory structure

2007-02-05 Thread Tom Phoenix
On 2/5/07, Robert Hicks <[EMAIL PROTECTED]> wrote: If I have a CGI script and I have my modules in a local directory ("lib") would the directory structure be like this: Trakker.pm Trakker::Dispatch.pm Takker::SQL.pm Trakker::Conf.pm /lib/Trakker.pm /lib/Trakker/Dispatch.pm /lib/Trakker/SQL.pm

Re: Module for printing file with CUPS

2006-12-20 Thread jm
also be aware that in previous versions of CUPS there was a native ability to print directly to a file; per the cups users group it was removed at some point because too many people were complaining about how difficult/unintuitive it was (seems like if i could figure it out at the time, anybody co

Re: Module for printing file with CUPS

2006-12-20 Thread Larry Johnson
Toddy Prawiraharjo <[EMAIL PROTECTED]> wrote: Hello all, I am starting to learn how to print via perl in linux. I have setup a network printer (using CUPS), which support TCP/IP and socket (9100). What module do i need, if necessary, to print a file using that printer? Thanks in advance Toddy

  1   2   3   >