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
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.
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
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
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:
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 =
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
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
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
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
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
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
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
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
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
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
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?
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
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,
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
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
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
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
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,
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
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
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
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
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
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 =
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 --
> 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
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/
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
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
> 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
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
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
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
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
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
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
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
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;
> > }
>
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
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
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
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_
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
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/
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
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/
- 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
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
- 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
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/
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
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
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/
> 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
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.
>
>
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
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.
-
> 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.
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
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
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
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
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
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
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
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
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:/
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
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
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
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
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
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
> -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
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
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
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
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
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
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
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
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
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
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
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
> > > 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
> 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
>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/
> 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
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,
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
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
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
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 - 100 of 258 matches
Mail list logo