What modules and/or libraries are you using? Before you code do you block
diagram and flowchart your programs?
On Tue, Oct 24, 2023, 12:06 PM Levi Elias Nystad-Johansen via beginners <
beginners@perl.org> wrote:
> I use modules for complex things that I might get wrong. To re-use other
> people's
I use modules for complex things that I might get wrong. To re-use other
people's code is often better than to re-invent their solutions.
https://metacpan.org/pod/WWW::Mechanize::Examples has some good examples of
useful scripts that are short and simple.
Imagine how hard it would be to write th
Hi Michael,
On Mon, 3 Jun 2013 16:38:25 -0700
Michael Rasmussen wrote:
> On Tue, Jun 04, 2013 at 12:01:09AM +0100, Rahim Fakir wrote:
> > Iam using win 7 64bits, and i downloaded Strawberry, and I use Perl PAckage
> > Manager to install modules, insted of Cpan command.
> > I know how to install
Hi Jim,
thanks for replying to Ray. See below for my comments.
On Mon, 3 Jun 2013 16:18:53 -0700
Jim Gibson wrote:
>
> On Jun 3, 2013, at 4:01 PM, Rahim Fakir wrote:
>
> > Iam using win 7 64bits, and i downloaded Strawberry, and I use Perl PAckage
> > Manager to install modules, insted of Cpa
On Tue, Jun 04, 2013 at 12:01:09AM +0100, Rahim Fakir wrote:
> Iam using win 7 64bits, and i downloaded Strawberry, and I use Perl PAckage
> Manager to install modules, insted of Cpan command.
> I know how to install them, but I need instrucions how to use them, step by
> step, how-to run the modul
On Jun 3, 2013, at 4:01 PM, Rahim Fakir wrote:
> Iam using win 7 64bits, and i downloaded Strawberry, and I use Perl PAckage
> Manager to install modules, insted of Cpan command.
> I know how to install them, but I need instrucions how to use them, step by
> step, how-to run the modules.
Each
Alan Haggai Alavi wrote:
Hi,
CPAN::Mini can be used to create/update local mirrors. minicpan script
(http://search.cpan.org/perldoc?minicpan) which uses CPAN::Mini will be
helpful in maintaining a local CPAN mirror.
If you're going to working on CPAN, you should sign up for the CPAN
mailing
Hi,
CPAN::Mini can be used to create/update local mirrors. minicpan script
(http://search.cpan.org/perldoc?minicpan) which uses CPAN::Mini will be
helpful in maintaining a local CPAN mirror.
Regards,
Alan Haggai Alavi.
--
The difference makes the difference.
--
To unsubscribe, e-mail: beginn
Open Source wrote:
Shawn, actually I would setup something like mirror site (locally) so all the
modules.
If you want to mirror CPAN, why didn't you say so? BTW, that is hardly
a beginners question. You should take your advance questions to
PerlMonks http://www.perlmonks.org/
--
Just m
On Fri, Apr 9, 2010 at 11:04 AM, Open Source wrote:
> Shawn, actually I would setup something like mirror site (locally) so all the
> modules.
http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN
???
--
Brandon McCaig
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castop
Shawn, actually I would setup something like mirror site (locally) so all the
modules.
> - Original Message -
> From: Shawn H Corey
> Sent: 04/09/10 08:04 PM
> To: Open Source
> Subject: Re: Modules download from CPAN
>
Open Source wrote:
> I would like to dow
On Apr 9, 2010, at 4:19 PM, Open Source wrote:
> I would like to download all the modules (atleast important ones) from cpan
> website and keep them in my local disk rather going into www everytime. Can
> someone tell how to download all of them? Cheers
Sorry, my previous email was a little to
Open Source wrote:
I would like to download all the modules (atleast important ones) from cpan
website and keep them in my local disk rather going into www everytime. Can
someone tell how to download all of them? Cheers
Sorry, you have to decide which ones are the important ones first.
--
Tom Phoenix wrote:
On 5/30/07, Robert Hicks <[EMAIL PROTECTED]> wrote:
I need to parse email headers and the body of the email. The emails are
supposed to be plain text only but sometimes someone goofs and sends one
in HTML. I need to strip away the HTML elements and/or covert it to
plain text
On 5/30/07, Robert Hicks <[EMAIL PROTECTED]> wrote:
I need to parse email headers and the body of the email. The emails are
supposed to be plain text only but sometimes someone goofs and sends one
in HTML. I need to strip away the HTML elements and/or covert it to
plain text to process.
That r
From: Mug <[EMAIL PROTECTED]>
> Say I have 2 modules ( below pseudo codes ) , which the first
> package ( InitGlobal ) will be used through out the other project
> modules. However, InitGlobal itself would relay on some other modules,
> which the modules using InitGlobal too.
>
> This sometimes ca
On 12/4/06, Mug <[EMAIL PROTECTED]> wrote:
> BEGIN {
> unshift (@INC, "/special");
> unshift (@INC, "/special/packages");
> }
>
> use strict;
> use InitGlobal;
And if I didn't get mis-understood on what I've studied, 'use' still
comes earlier than 'BEGIN{}', so what is the mystery why this
met
Bill Jones wrote:
> On 12/4/06, Mug <[EMAIL PROTECTED]> wrote:
>
>> Say I have 2 modules ( below pseudo codes ) , which the first
>> package ( InitGlobal ) will be used through out the other project
>> modules. However, InitGlobal itself would relay on some other
>> modules, which the modules using
On 12/4/06, Mug <[EMAIL PROTECTED]> wrote:
Say I have 2 modules ( below pseudo codes ) , which the first
package ( InitGlobal ) will be used through out the other project
modules. However, InitGlobal itself would relay on some other
modules, which the modules using InitGlobal too.
You can pla
Mumia W. a écrit :
On 10/11/2006 10:42 AM, Sami FANTAR wrote:
[...]
I have read the Data::Dumper related doc.
Including the part where it tells you how to substitute the correct
variable names for $VAR1,$VAR2,... ?
But, after having written your example, the output seems quite weird.
I got
On 10/11/06, Jesse Engel <[EMAIL PROTECTED]> wrote:
i'm getting an error in an installed module, not in my script.
invalid top directory at /System/Library/Perl/5.8.1/File/Find.pm line 568.
Yes; but do you see what it's trying to tell you? Some top directory
that you're passing to find() isn'
On 10/11/2006 10:42 AM, Sami FANTAR wrote:
[...]
I have read the Data::Dumper related doc.
Including the part where it tells you how to substitute the correct
variable names for $VAR1,$VAR2,... ?
But, after having written your example, the output seems quite weird.
I got $VAR1,$VAR2, and so
Rob Coops wrote:
: Simply do this in your perl script:
: *use Data::Dumper;*
: *print Dumper @huge_array;*
For the archives:
Those asterisks (*) are for emphasis. They are not
actually in the code. Arrays and hashes can also be
dumped using a reference. I find a reference more
aesthetica
Rob Coops a écrit :
Hi Sami,
Yes Data::Dumper is your friend when it comes to dumping data (how
strange
is that :-)
Simply do this in your perl script:
*use Data::Dumper;*
*print Dumper @huge_array;*
And be amazed ;-)
On 10/11/06, Sami FANTAR <[EMAIL PROTECTED]> wrote:
Hello everybody
Hi Sami,
Yes Data::Dumper is your friend when it comes to dumping data (how strange
is that :-)
Simply do this in your perl script:
*use Data::Dumper;*
*print Dumper @huge_array;*
And be amazed ;-)
On 10/11/06, Sami FANTAR <[EMAIL PROTECTED]> wrote:
Hello everybody
I would like to know
On Wed, 11 Oct 2006 21:39:22 +0800 (GMT+08:00)
Jeff Pang <[EMAIL PROTECTED]> wrote:
>
> >Can somebody give me a hint if there's some general problem with perl
> >when not resided in /usr
> >
>
> Hello,
>
> Do you know where your modules are installed?Given the path for installed
> modules is "
>Can somebody give me a hint if there's some general problem with perl
>when not resided in /usr
>
Hello,
Do you know where your modules are installed?Given the path for installed
modules is "/your/path",you can add the path to Perl's @INC by putthing this
statement at the begin of your script
SFantar schreef:
> After searching the cpan.org site for mathematical modules,
> I did not find a module which can display graphically
> the result of a function.
> I want to see a function curve displayed in a graphical window?
Beyond that:
http://maxima.sourceforge.net/ (Lisp)
http://symax
On 09/20/2006 05:24 AM, SFantar wrote:
Hello
After searching the cpan.org site for mathematical modules, I did not
find a module which can display graphically
the result of a function.
I want to see a function curve displayed in a graphical window?
How can I make it possible in Perl?
Thanks i
> After searching the cpan.org site for mathematical modules, I
> did not find a module which can display graphically the
> result of a function.
> I want to see a function curve displayed in a graphical window?
>
> How can I make it possible in Perl?
> Thanks in advance for your help.
Module n
PROTECTED]
Sent: 15 September 2006 10:24 PM
To: beginners@perl.org
Subject: Re: Modules to extract calendar info from Exchange
William Paulsen (W) am Freitag, 15. September 2006 13:36:
> Hi,
Hi
> Is there a perl module(s) that can extract calendar infrom from an
MS
> Exchange server. I
EMAIL PROTECTED]
Sent: Friday, September 15, 2006 13:26
To: beginners@perl.org
Subject: Re: Modules to extract calendar info from Exchange
Sorry:
> > Is there a perl module(s) that can extract calendar infrom from an
> > MS Exchange server. I need to extract appmnts, meetings, etc such
t
Sorry:
> > Is there a perl module(s) that can extract calendar infrom from an MS
> > Exchange server. I need to extract appmnts, meetings, etc such that I
> > can SMS these message to a person(s) cellphone. Which modules are
> > available, and how easy is it?
>
> No idea (and no other answers)
William Paulsen (W) am Freitag, 15. September 2006 13:36:
> Hi,
Hi
> Is there a perl module(s) that can extract calendar infrom from an MS
> Exchange server. I need to extract appmnts, meetings, etc such that I
> can SMS these message to a person(s) cellphone. Which modules are
> available, an
On 9/15/06, William Paulsen (W) <[EMAIL PROTECTED]> wrote:
Is there a perl module(s) that can extract calendar infrom from an MS
Exchange server. I need to extract appmnts, meetings, etc such that I
can SMS these message to a person(s) cellphone. Which modules are
available, and how easy is i
Is there a maillist talking about or seeking a module to a specific
requirement?
There are some lists about CPAN,maybe that's you wanted.
For example:
cpan-discuss A general, non-technical list for talking about any issue of
CPAN.
cpan-interface A list for people interested in developing a
> > And if I am, and specifying explicit imports for each module is beneficial
> > -
>
> Not for reason of speed. For reason of maintainability. You should only
> import names you are going to use, and then do so explicitly, so that a
> maintenance programmer doesn't look at the program wonder
On Sat, 02 Apr 2005 09:23:53 -0500, Peter Rabbitson wrote:
> This one is about my Tools.pm which uses Exporter and delivers a set of 5-
> 10 line subroutines for stupud tasks (number rounder, strip commas from
> numbers, commify them back, customized html entity decoder etc etc etc).
> What I am cu
> Examine your concept of "reside in". You appear to be confused with
> modules that use the Exporter. You don't. I believe you'll find that
> you use SomeOther::Module *before* using Configuration in the main program,
> which means that the assignments haven't taken place yet.
>
A-ha! Some da
On Fri, 01 Apr 2005 07:29:17 -0500, Peter Rabbitson wrote:
> [...] I decided to create a central Configuration.pm
> which will hold different hashes with "configuration sections" e.g.:
>
> package Configuration;
>
> %Configuration::auth = (
>[...]...
>
> You get the idea. Now I am able to ac
[snip]
> If you want to "do as the Romans do", maybe you can sign up for a Gmail
> account or something that would be more flexible...
Do u want to be one of the Romans? :-) Its hell good being Roman..
Amongst many other things just to name a few advantage of being Roman are
u almost never might n
On Thu, 30 Sep 2004 [EMAIL PROTECTED] wrote:
> Yes it does great thank you! But a few more things. Once I
> create my code, how do I pass a data file in a different program to a
> specific routine that lives in a different file?
That's really up to you.
You can have a way to pass the n
Devers <[EMAIL PROTECTED]>
09/30/2004 11:04 PM
Please respond to Perl Beginners List
To: [EMAIL PROTECTED]
cc: Perl Beginners List <[EMAIL PROTECTED]>
Subject: Re: modules
On Thu, 30 Sep 2004 [EMAIL PROTECTED] wrote:
> I am unsure if I pissed
On Thu, 30 Sep 2004 [EMAIL PROTECTED] wrote:
> I am unsure if I pissed everyone off, b/c no one responded???
Some (all?) of us have jobs and lives that occasionally prevent us from
giving out free advice to strangers on the internet immediately.
It happens.
It isn't meant personally.
> I am
I think so I am using Perl 5.8 and I never installed those modules manualy,
but my scripts which uses those modules work just fine that means they comes
with Perl.
LRMK
- Original Message -
From: "aditi gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 19, 2004 7:46
On Jan 23, 2004, at 2:47 PM, Eric Walker wrote:
[..]
while {
do something;}
package ONE
package stuff;
1;
package main
__DATA__
data stufff
yes, one can do the reset back to package main.
part of the reason I opt
On Fri, 2004-01-23 at 14:46, drieux wrote:
On Jan 23, 2004, at 1:36 PM, Eric Walker wrote:
[..]
>
> when I tried to add a package to it, I did some test and its not
> reading
> the DATA anymore. Is there a certain order?
[..]
How did you put the package in?
On Fri, 2004-01-23 at 14:43, Randy W. Sims wrote:
On 1/23/2004 4:36 PM, Eric Walker wrote:
>
> when I tried to add a package to it, I did some test and its not reading
> the DATA anymore. Is there a certain order?
__DATA__ must be in package main;
#!perl
On Jan 23, 2004, at 1:36 PM, Eric Walker wrote:
[..]
when I tried to add a package to it, I did some test and its not
reading
the DATA anymore. Is there a certain order?
[..]
How did you put the package in?
ciao
drieux
---
#!/usr/bin/perl -w
use strict;
my $foo
On 1/23/2004 4:36 PM, Eric Walker wrote:
when I tried to add a package to it, I did some test and its not reading
the DATA anymore. Is there a certain order?
__DATA__ must be in package main;
#!perl
use strict;
use warnings;
while () {
print;
}
package Test;
sub a {}
1;
package main; # DATA mus
On Jan 23, 2004, at 1:27 PM, Eric Walker wrote:
I have some code I want to add a package in the same file. I already
have some _DATA_ in the file. Currently, the code is not seeing the
_DATA_. How can I add a package in the same file then.
[..]
since the
__DATA__
vice
_DATA_
h
On Fri, 2004-01-23 at 14:34, James Edward Gray II wrote:
On Jan 23, 2004, at 3:27 PM, Eric Walker wrote:
> I have some code I want to add a package in the same file. I already
> have some _DATA_ in the file. Currently, the code is not seeing the
> _DATA_. How can I add a pa
On Jan 23, 2004, at 3:27 PM, Eric Walker wrote:
I have some code I want to add a package in the same file. I already
have some _DATA_ in the file. Currently, the code is not seeing the
_DATA_. How can I add a package in the same file then.
I believe your DATA tag at the end is the problem. It'
On Wednesday, September 10, 2003, at 05:43 PM, Hanson, Rob wrote:
I googles Julian and came up with two email addresses from this page:
http://www.monkey.org/openbsd/archive/misc/9904/msg00077.html
Thank you. I have no idea why, but it never occurred to me to Google
for a person, though it seem
I googles Julian and came up with two email addresses from this page:
http://www.monkey.org/openbsd/archive/misc/9904/msg00077.html
If that fails I'm not sure.
The FAQ on CPAN doesn't help much with this specific case since the mails
are bouncing:
http://www.cpan.org/misc/cpan-faq.html#How_mainta
Ismar Dupanovic wrote:
> Got 2 modules and a driver script that uses both. Both modules
> require Exporter and export their functions. However in my driver
> script I have to fully qualify the function names of the SECOND
> module(module->function), while the functions of the first module
> become
On Saturday, July 6, 2002, at 10:00 , John Almberg wrote:
> I have a related question . . . where does @INC come from? I guess there
> is
> a configuration file somewhere?
>
> -- John
more info available at perldoc perlvar
a quick deconstruction:
@: this is an array
> "John" == John Almberg <[EMAIL PROTECTED]> writes:
John> Now that is a handy little script. Thanks! I have a related
John> question . . . where does @INC come from? I guess there is a
John> configuration file somewhere?
It's compiled into perl itself, I believe. You can manip
12:10 PM
# To: [EMAIL PROTECTED]
# Subject: Re: Modules
#
#
# On Sat, 6 Jul 2002 00:17:04 -0400, [EMAIL PROTECTED] (John Almberg)
# wrote:
#
# >What's an easy way to tell if a particular module is installed
# on my server?
# >I'm sure I read this somewhere, but can't fin
On Sat, 6 Jul 2002 00:17:04 -0400, [EMAIL PROTECTED] (John Almberg)
wrote:
>What's an easy way to tell if a particular module is installed on my server?
>I'm sure I read this somewhere, but can't find it. Thanks!
I'm guessing you mean remote server , and you want it via a
browser.
#
on Sat, 06 Jul 2002 14:44:52 GMT, Drieux wrote:
> [jeeves:~] drieux% perl -MFoo::Bob -e 'use Foo::Bob'
Why are you trying to load Foo::Bob twice?
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Friday, July 5, 2002, at 09:17 , John Almberg wrote:
> What's an easy way to tell if a particular module is installed on my
> server?
> I'm sure I read this somewhere, but can't find it. Thanks!
>
> -- John
[jeeves:~] drieux% perl -MFoo::Bob -e 'use Foo::Bob'
Can't locate Foo/Bob.pm in @INC
Thanks!!
-Original Message-
From: Elaine -HFB- Ashton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 2:48 PM
To: Shishir K. Singh
Cc: [EMAIL PROTECTED]
Subject: Re: Modules
Shishir K. Singh [[EMAIL PROTECTED]] quoth:
*>Wanted to know the modules that are already present
Shishir K. Singh [[EMAIL PROTECTED]] quoth:
*>Wanted to know the modules that are already present in the standard stable.tar.gz
distribution. I had a Active Perl distribution. Now I need to install the
stable.tar.gz and wanted to know the additional modules that I may have to install.
http://w
On Thursday, May 2, 2002, at 12:31 , Jackson, Harry wrote:
> I am attempting to write a module and trying to follow the guidelines etc
> on
> how it should be done.
[..]
I can help as time allows... { just tag it B/C so I see
that we are taking this 'Back Channel' ... hey old habits. }
fo
you can't get ALL the modules using the ppm executable...
sometimes you just have to download it from cpan.org and install it
yourself.
> -Original Message-
> From: Alain Savio [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: modules in
Eric R. Jones [[EMAIL PROTECTED]] quoth:
*>I had problem installing mods and getting them noticed.
Since you didn't mention anything at all about the problem, I'll suggest
you read the FAQ at http://www.cpan.org/misc/cpan-faq.html
e.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
You can use regular expressions to verify them.
--- Connie Chan <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there any module can use to verify data type (String, Integer, floating, Hex,
>valid email
> address, valid url etc.) ?
> Thank you very much.
>
>
=
Yeung Siu
[EMAIL PROTECTED]
ECTED]>
> To: TS <[EMAIL PROTECTED]>
> CC: <[EMAIL PROTECTED]>
> Subject: Re: modules
> Date: Fri, 5 Oct 2001 12:27:27 +0200 (CEST)
>
> On Fri, 5 Oct 2001, TS wrote:
>
> > I use perl 5.005_03.
> > how do I find out what modules are installed ?
>
Original Message Follows
From: <[EMAIL PROTECTED]>
To: TS <[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
Subject: Re: modules
Date: Fri, 5 Oct 2001 12:27:27 +0200 (CEST)
On Fri, 5 Oct 2001, TS wrote:
> I use perl 5.005_03.
> how do I find out what modules are inst
On Tue, 11 Dec 2001 17:37:16 -0500, [EMAIL PROTECTED] (Pankaj
Warade) wrote:
>GlacierHi Group,
>I had been working on generating graphic images (want to plot some graphs
>like pie-chart, bar-graph). Is there any-way of getting this done in perl.
>Came to know about GD module. Is there any other m
On Tue, Dec 11, 2001 at 05:37:16PM -0500, Pankaj Warade wrote:
> GlacierHi Group,
> I had been working on generating graphic images (want to plot some graphs
> like pie-chart, bar-graph). Is there any-way of getting this done in perl.
> Came to know about GD module. Is there any other modules whic
maarten hilgenga [[EMAIL PROTECTED]] quoth:
*>Hi all,
*>
*>After installing Perl 5.005.03 from the CPAN port on a Silicon Graphics
*>running IRIX 6.3 without any problems, I tried installing an openssl library.
*>During this installation I found two errors:
*>
*>can't locate module strict.pm &
*
Bob Showalter [[EMAIL PROTECTED]] quoth:
*>
*>require() is handy inside an eval { } block to trap whether a module
*>is installed or not. Many CPAN modules use this technique.
Like I said, I can't think of any good reasons for using require.
e.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
> > In practical daily use, use(); is preferred as since it compiles the
> > module as soon as it sees 'use Foo::Bar;' before moving on, this will
> > catch errors and scope conflicts far sooner than if you use require();
> > There aren't many good reasons to use require, at least I
> > can't thin
> -Original Message-
> From: Elaine -HFB- Ashton [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 10:28 AM
> To: [EMAIL PROTECTED]
> Cc: Ray Murphy; [EMAIL PROTECTED]
> Subject: Re: Modules
>
>
> Jeff 'japhy' Pinyan [[EMAIL PROTECTED]]
Jeff 'japhy' Pinyan [[EMAIL PROTECTED]] quoth:
*>On Nov 16, Ray Murphy said:
*>
*>>When using modules, is it better to say 'use
*>>Foo::Bar;' rather than 'require'. Also I've noticed
*>>that some people put their 'use' or 'require'
*>>statements in subroutines and not at the beginning of
*>>the p
On Nov 16, Ray Murphy said:
>When using modules, is it better to say 'use
>Foo::Bar;' rather than 'require'. Also I've noticed
>that some people put their 'use' or 'require'
>statements in subroutines and not at the beginning of
>the program - what benefits does this serve - conserve
>memory bec
I might be wrong here but use and require both do basically the same thing ...
they check to see if the module has been included before and if it has not
then it reads it in. the difference is in the usage ... require takes a
complete path to the actual module file and use just takes the module n
[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth:
*>On Fri, 5 Oct 2001, TS wrote:
*>
*>> I use perl 5.005_03.
*>> how do I find out what modules are installed ?
*>
*>$perl -MCPAN -e autobundle
*>This will first search for all installed module. Then it will search the
*>cpan archive for updates...
*>Per
On Fri, 5 Oct 2001, TS wrote:
> I use perl 5.005_03.
> how do I find out what modules are installed ?
$perl -MCPAN -e autobundle
This will first search for all installed module. Then it will search the
cpan archive for updates...
Perhaps you need answere a few question if this is the very first
> How do I know what modules are installed ?
> Does the CGI_Lite module come bundled by default?
This question is a CPAN FAQ, which you can read here:
http://www.cpan.org/misc/cpan-faq.html#How_installed_modules
You may find the other CPAN FAQs useful; the url for the full list is
slightly differ
Cool script. Why does a bunch list with a version of -- ???
Perl -- 5.6.1
Pod -- ???
RAS::AS5200 -- 1.04
SHA -- 2.01
Term::ANSIColor -- 1.04
Pod for example above.
Tks, K
Scott wrote:
> Here is some code that will list all installed modules
>
> #!/usr/bin/perl -w
> use ExtUtils::Installed;
>
Here is some code that will list all installed modules
#!/usr/bin/perl -w
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}
-Original Mess
[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth:
*>Dose anyone know of a exsiting Perl module that will test to see what tape drives
are available on Unix box?
*>
*>I looked through the some of the CPAN stuff but didn't find anything that looked
like what I might need.
None that I'm aware of as i
At 02:03 PM 7/5/01 -0400, David Gilden wrote:
> > perldoc CPAN and look for the autobundle command. You'll have to define
> > your own personal CPAN directory first, but this is the "official"
> > way. Dirtier way:
> >
> > find `perl -e 'print "@INC"'` -name "*.pm" -print
> >
>
>Got a long list
At 01:29 PM 7/5/01 -0400, David Gilden wrote:
>How do I list what my ISP has on there server in terms of Modules?
perldoc CPAN and look for the autobundle command. You'll have to define
your own personal CPAN directory first, but this is the "official"
way. Dirtier way:
find `perl -e 'print
do a 'which perl' at the command line to get the location of perl. Not sure
about the modules. To get the version of perl, do 'perl --version' at the
command line.
Tyler
- Original Message -
From: "David Gilden" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 1
On Win32, typing
ppm verify
at the command prompt will list all the modules installed on your system
quit
will exit the ppm tool
[EMAIL PROTECTED] wrote:
> Help with Modules please.
>
> Is there a option I can run with perl to find out if a particular module is
>installed?
>
> Thanks,
>
> Anna
On Fri, 29 Jun 2001 [EMAIL PROTECTED] wrote:
> Help with Modules please.
>
> Is there a option I can run with perl to find out if a particular
> module is installed?
Try perl -M -e ''. If it isn't in @INC, you'll get an error,
otherwise it will return to the command-line prompt.
-- Brett
Hi Anna,
To find out all the modules installed on your system, refer to the
following URL:
http:[EMAIL PROTECTED]/msg04057.html
To find out about a single one, you can do:
perl -MMODULE_NAME -e 1
So, to see if CGI.pm is installed:
perl -MCGI -e 1
If you see no error messages, it is installe
put use (MODULE NAME); at the top of the script. Run the script and see if
it generates an error.
e.g
use Win32::Lanman;
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 29 June 2001 13:36
To: [EMAIL PROTECTED]
Subject: Modules question
Help with Modules ple
--- Peter Scott <[EMAIL PROTECTED]> wrote:
> It's always seemed to me that the 'approved' way of creating modules
> to import routines into another script was a bit wordy.
> In a nutshell, you have to do something like
>
> package abc;
> use Exporter;
> @ISA = qw(Exp
93 matches
Mail list logo