Re: can locate pm

2015-02-19 Thread Andy Bach
On Thu, Feb 19, 2015 at 8:37 AM, nicolas wrote: > > When I did > perl -V:sitelib > sitelib='/usr/local/share/perl/5.18.2'; > I can browse usr/local/share/ but I annot access /perl/5.18.2 > Well, that @INC is compiled into the Perl exe, so it doesn't have to exist. You can create the path yoursel

Re: can locate pm

2015-02-19 Thread nicolas
share/perl/5.18.2»: Aucun fichier ou dossier de ce type Impossible to create a file «/usr/local/share/perl/5.18.2»   Thanks Sent: Wednesday, February 18, 2015 at 6:39 PM From: "Brandon McCaig" To: nicolas Cc: beginners@perl.org Subject: Re: can locate pm Nicolas: On Wed, Feb

Re: can locate pm

2015-02-18 Thread sisyphus1
From: nicolas Sent: Thursday, February 19, 2015 10:14 AM To: beginners@perl.org Subject: can locate pm Hello, I used to work with a perl script that contains (use vt.pm). (vt.pm are code that complement the script) I remember that I have to copy the vt.pm file in perl somewhere. Since I am

Re: can locate pm

2015-02-18 Thread Brandon McCaig
Nicolas: On Wed, Feb 18, 2015 at 6:14 PM, nicolas wrote: > Hello, Hello, > I used to work with a perl script that contains (use vt.pm). > (vt.pm are code that complement the script) I remember that I > have to copy the vt.pm file in perl somewhere. Since I am not > ve

can locate pm

2015-02-18 Thread nicolas
Hello,   I used to work with a perl script that contains (use vt.pm). (vt.pm are code that complement the script) I remember that I have to copy the vt.pm file in perl somewhere. Since I am not very familar with programming my question is where to excaclly copy this *.pm so I can use my script

Re: [perl-108] Fwd: Online Perl courses for PM list Newbies

2015-01-20 Thread Andy Bach
A while back Andrew Solomon wrote: > > For the last few years I've been developing Geekuni to provide an > >> automated online 'tutor-bot' to help new users learn Perl. > >> > >> I've been beta testing it on people at the London Perl Workshop as > >> well as graduate recruits at NET-A-PORTER - on

Re: [Bangalore-pm] can't locate object method via perl package

2013-09-12 Thread Chankey Pathak
I looked at the source of Vector.pm and I found that there is no method as "UnitVecPoints". There is however a method named "UnitVectorPoints". I think you are looking for that. Try to rename it in Vector.pm. On Thu, Sep 12, 2013 at 4:23 PM, Gurunath Katagi wrote: > Hi ev

Re: Adding perl modules, custom built .pm files

2013-05-09 Thread Shlomi Fish
Hi Dariusz, On Thu, 9 May 2013 10:08:38 -0500 Dariusz Dolecki wrote: > How do I add existing custom built perl modules that were built on a > different system to another one, I have copied over the .pm file. > Put them in the @INC : [ IRC ] perlbot: @INC rindolf: To change @INC

Adding perl modules, custom built .pm files

2013-05-09 Thread Dariusz Dolecki
How do I add existing custom built perl modules that were built on a different system to another one, I have copied over the .pm file. Thanks in advance.

Re: Code organization .pm

2011-09-05 Thread Shawn H Corey
On 11-09-05 02:12 AM, Shlomi Fish wrote: I should note that you may be prematurely optimising here, so you shouldn't worry about getting a lot of code compiled, until you are sure it's the bottleneck: http://c2.com/cgi/wiki?PrematureOptimization I have to agree with Shlomi. I also think that

Re: Code organization .pm

2011-09-04 Thread Shlomi Fish
methods here... > > 1; > > --- > > package Framework; > #file Framework.pm > use Widget; > use Table; > 1; > > --- > > What I was doing was adding "use Widget;" and "use Table;" to the top of the > program that uses these classes.

Code organization .pm

2011-09-04 Thread Ron Weidner
rt several methods here... 1; --- package Framework; #file Framework.pm use Widget; use Table; 1; --- What I was doing was adding "use Widget;" and "use Table;" to the top of the program that uses these classes.  But, because I expect this library of classes to grow significan

Re: [Milan-pm] New note on page5notebook

2010-10-08 Thread Gianluca Casati
Begginers Inviato: Gio 7 ottobre 2010, 14:28:11 Oggetto: Re: [Milan-pm] New note on page5notebook My idea is to throw away the SQL almost completely to 90% of the queries. When the queries are a little bit more complex, I'd prefer to create a View and use a simple interface. I never did a Pr

Re: [Milan-pm] New note on page5notebook

2010-10-07 Thread marcos rebelo
+- 5 hours/week. Best Regards Marcos Rebelo On Thu, Oct 7, 2010 at 12:08 PM, Oha wrote: > On 10/07/2010 11:27 AM, marcos rebelo wrote: >> >> but for such a simple query, I would prefer >> >> eval { >>    my $ss = SmartSelect->new($dsn, $user, $password); >&g

Re: [Milan-pm] New note on page5notebook

2010-10-07 Thread marcos rebelo
directory so other people that > don't know Perl can edit them ( after that they accept the '?' special > character :) > > Bye, > > see you the next meeting > > > Da: marcos rebelo > A: milan...@pm.org; nl...@amsterdam.pm.o

Re: [Milan-pm] A recipe was rewritten

2010-07-06 Thread marcos rebelo
>> Please comment this ore any other recipe. >> >> Remember that you may also propose some other useful recipe. >> >> Best Regards >> Marcos Rebelo >> >> >> >> -- >> Marcos Rebelo >> http://oleber.freehostia.com >> Milan

Re: [Milan-pm] A recipe was rewritten

2010-07-06 Thread Giulio Bertani
; Marcos Rebelo > > > > -- > Marcos Rebelo > http://oleber.freehostia.com > Milan Perl Mongers leader http://milan.pm.org > Webmaster of http://sites.google.com/site/oleberperlrecipes/ > ___ > Milan-pm mailing list > mila

Re: [Oc-pm] need help with subroutines & funtion

2008-09-08 Thread Ben Tilly
On Mon, Sep 8, 2008 at 3:04 AM, Raul Ruiz Jr. <[EMAIL PROTECTED]> wrote: > I am taking an online ceu course in scripting with Unix. I have been stumped > by this project. Can anyone out there help me out a bit. I created a script > at the bottom and it does not quite work. What am I missing? > I kn

Re: making .pm file as module

2007-10-11 Thread Paul Lalli
On Oct 11, 6:43 am, [EMAIL PROTECTED] (Siva Prasad) wrote: > Hi Gurus, > > I have a written a package (and named it as Connection.pm). > > I am calling this module in a perl script and everything is working fine. > > Now How can I make the connection.pm as module so that I can install it as > other

Re: making .pm file as module

2007-10-11 Thread Jeff Pang
there're some ways to do that.One easy way is to use module-starter,see: http://search.cpan.org/~petdance/Module-Starter-1.42/bin/module-starter 2007/10/11, Siva Prasad <[EMAIL PROTECTED]>: > Hi Gurus, > > > > I have a written a package (and named it as Connection.pm). > > > > > > I am calling th

making .pm file as module

2007-10-11 Thread Siva Prasad
Hi Gurus, I have a written a package (and named it as Connection.pm). I am calling this module in a perl script and everything is working fine. Now How can I make the connection.pm as module so that I can install it as other modules that are available in CPAN. Thanks, PP

Re: pm for parsing HTML tags.

2007-10-09 Thread Jeff Pang
2007/10/10, Patrik Hasibuan <[EMAIL PROTECTED]>: > Dear my friends... > > Which pm can I use for parsing HTML tags? > Hi, Do you know CPAN.org?you can search it with any keywords you want at first. For your question,maybe HTML::Parser is suitable.see: http://search.cpan.org

pm for parsing HTML tags.

2007-10-09 Thread Patrik Hasibuan
Dear my friends... Which pm can I use for parsing HTML tags? Thanks in advance. -- Patrik Hasibuan <[EMAIL PROTECTED]> Junior Programmer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: strict behavior with .pm

2007-09-29 Thread Paul Lalli
On Sep 28, 5:18 pm, [EMAIL PROTECTED] (Jeremy Kister) wrote: > Given the below code, is there something that will warn/prevent me from > declaring $variable when i really meant @variable ? > > I usually use perl -wTc scriptname to check for silliness, but i've > realized code

Re: strict behavior with .pm

2007-09-28 Thread Tom Phoenix
On 9/28/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > The strict pragma is lexically scoped, so you need to use it again > after the package statement. It is probably a good idea to turn on > warnings as well. To be sure, I don't think that's an accurate description of the effects of lexical scop

Re: strict behavior with .pm

2007-09-28 Thread Chas. Owens
On 9/28/07, Jeremy Kister <[EMAIL PROTECTED]> wrote: > Given the below code, is there something that will warn/prevent me from > declaring $variable when i really meant @variable ? snip > package My::Example; > sub new { > return bless({}, shift); > } > sub go { > my $variable; >

strict behavior with .pm

2007-09-28 Thread Jeremy Kister
Given the below code, is there something that will warn/prevent me from declaring $variable when i really meant @variable ? I usually use perl -wTc scriptname to check for silliness, but i've realized code in the below fashion won't be reported. This got me very confused under mod_perl, becau

Re: pm for getting the content of a URL.

2007-09-19 Thread Patrik Hasibuan
You've solved my problem, Chas. Thank you very...very...much. I really appreciate your help. On Mon, 17 Sep 2007 16:39:08 -0400 "Chas Owens" <[EMAIL PROTECTED]> wrote: > On 9/17/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote: > snip > > I want to get a cont

Re: pm for getting the content of a URL.

2007-09-19 Thread Patrik Hasibuan
om: Patrik Hasibuan <[EMAIL PROTECTED]> > > Dear my friends... > > > > I want to get a content of a URL (like curl does). Which pm can I use? > > > > I'm facing a development restriction that my perl-code is going to be > > run on a webhosting company'

Re: pm for getting the content of a URL.

2007-09-17 Thread Jenda Krynicky
From: Patrik Hasibuan <[EMAIL PROTECTED]> > Dear my friends... > > I want to get a content of a URL (like curl does). Which pm can I use? > > I'm facing a development restriction that my perl-code is going to be > run on a webhosting company'es server and I do

pm for getting the content of a URL.

2007-09-17 Thread Patrik Hasibuan
Dear my friends... I want to get a content of a URL (like curl does). Which pm can I use? I'm facing a development restriction that my perl-code is going to be run on a webhosting company'es server and I do not have libcurl there so I can not use libcurl and 'curl binding of per

Re: pm for getting the content of a URL.

2007-09-17 Thread Chas Owens
On 9/17/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote: snip > I want to get a content of a URL (like curl does). Which pm can I use? snip You probably want LWP::Simple (specifically its get function): #!/usr/bin/perl use strict; use warnings; use LWP::Simple; my $content = get &qu

inclusion of .pm files in makefile

2007-05-05 Thread carol white
Hi, How is it possible to include personal modlule .pm in a make file? i have included PM => { 'path_to_pm_file' => 'pm_file' } in Makefile.PL but doesn't work. if for ex, file.pm is in /home/file.pm, how should I specify? like '/home/file.pm'

Re: .pm

2007-01-08 Thread Tom Phoenix
On 1/8/07, xavier mas <[EMAIL PROTECTED]> wrote: I want to install the Copy::File module and utf-8 pragma If Perl is properly installed, you should have the File::Copy module and all pragmas installed as well. So if you don't have those, re-install Perl. Good luck with it! --Tom Phoenix Stone

.pm

2007-01-08 Thread xavier mas
Hi, list! I want to install the Copy::File module and utf-8 pragma but I can download only the .pm file. How do I have to install it? Or Where do I have to copy it if that is the case -I guess this is the unzip and file to install? Thanks a lot for your help. -- Xavier Mas -- To

Re: ~.pm may be a broken handle

2005-05-11 Thread Chris Devers
self is your own home folder and "~name" is the home directory of the user account named "name". Therefore, you're implying here that you have a distinct "cpan" user, which seems unusual. * following that, "~.pm" could be interpreted as the ".pm&

~.pm may be a broken handle

2005-05-11 Thread Mary Burwell
Hello, I get the error below when trying to update CPAN using perl -MCPAN -e 'install Bundle::CPAN' The bundle file ~cpan\Bundle\CPAN.pm may be a broken handlefile. It seems not to contain any bundle definition. Please check The file and if it is bogus, please delete it..

Re: functionality of .pl from .pm

2005-04-07 Thread Xavier Noria
On Apr 6, 2005, at 12:22, lohit wrote: i have a strange requirement where in i have certain functionality to be achieved by calling a perlscript. say script.pl but i also have to seperate these functionalities in a module script.pm A different thread today reminded me that caller() could be useful

Re: functionality of .pl from .pm

2005-04-06 Thread lohit
On Apr 6, 2005 8:26 PM, Lawrence Statton <[EMAIL PROTECTED]> wrote: > > > Hi there, > > > > i have a strange requirement where in i have certain functionality to > > be achieved by calling a perlscript. say script.pl > > but i also have to seperate thes

Re: functionality of .pl from .pm

2005-04-06 Thread Lawrence Statton
> Hi there, > > i have a strange requirement where in i have certain functionality to > be achieved by calling a perlscript. say script.pl > but i also have to seperate these functionalities in a module script.pm > > how woudl you design a case where in script.pm provides certain > functions, ye

functionality of .pl from .pm

2005-04-06 Thread lohit
Hi there, i have a strange requirement where in i have certain functionality to be achieved by calling a perlscript. say script.pl but i also have to seperate these functionalities in a module script.pm how woudl you design a case where in script.pm provides certain functions, yet be able to wor

Re: .pm and .pl files.

2005-04-02 Thread Randal L. Schwartz
> "Jay" == Jay Savage <[EMAIL PROTECTED]> writes: Jay> I respectfully disagree. I blame Richard Stallman for my habits, not Jay> Bill Gates, et. al. 'emacs test' when creating a file opens it in Jay> Text Fill, but 'emacs test.pl' when creating a file saves me 'M-x Jay> perl-mode' (or 'M-x Cp

Re: .pm and .pl files.

2005-04-01 Thread Jay Savage
On 30 Mar 2005 07:07:56 -0800, Randal L. Schwartz wrote: > >>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes: > > Chris> By convention, the .pm extension denotes Perl modules -- libraries used > Chris> by other scripts but not run direc

RE: .pm and .pl files.

2005-04-01 Thread Charles K. Clarkson
Mike Lesser <mailto:[EMAIL PROTECTED]> wrote: : Is the library file thing passe? I was going to put some stuff in a : library, but I get the impression that I should jump right to a pm. : As a newbie this is a little daunting. I use .pl for scripts and .pm for modules. Modules

Re: .pm and .pl files.

2005-04-01 Thread Mike Lesser
ession that I should jump right to a pm. As a newbie this is a little daunting. Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: .pm and .pl files.

2005-03-30 Thread Chris Devers
On Wed, 30 Mar 2005, Randal L. Schwartz wrote: > >>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes: > > Chris> By convention, the .pm extension denotes Perl modules -- libraries > Chris> used by other scripts but not run directly -- and .p

Re: .pm and .pl files.

2005-03-30 Thread Randal L. Schwartz
>>>>> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes: Chris> By convention, the .pm extension denotes Perl modules -- libraries used Chris> by other scripts but not run directly -- and .pl denotes Perl scripts -- Chris> programs that *are* meant to b

Re: .pm and .pl files.

2005-03-30 Thread John W. Krahn
Srikrishna Raghammudi wrote: Can Any body pls tell me the differnece between .pm and .pl files. .pl was used in Perl4 and earlier to designate Perl Libraries and when Perl5 came out .pm was used to designate Perl Modules. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL

Re: .pm and .pl files.

2005-03-29 Thread Chris Devers
On Tue, 29 Mar 2005, Srikrishna Raghammudi wrote: > Can [anybody] [please] tell me the differnece between .pm and .pl > files[question mark] By convention, the .pm extension denotes Perl modules -- libraries used by other scripts but not run directly -- and .pl denotes Perl scripts -- pr

.pm and .pl files.

2005-03-29 Thread Srikrishna Raghammudi
Can Any body pls tell me the differnece between .pm and .pl files. Thanks, Krishna - Do you Yahoo!? Yahoo! Small Business - Try our new resources site!

RE: Subroutine redefined at ***.pm error

2005-01-31 Thread Michael Kraus
uting) Software Developer Wild Technology Pty Ltd > -Original Message- > From: Anish Kumar K. [mailto:[EMAIL PROTECTED] > Sent: Monday, 31 January 2005 7:42 PM > To: beginners perl > Subject: Subroutine redefined at ***.pm error > > Hi I am using a perl module in which

Subroutine redefined at ***.pm error

2005-01-31 Thread Anish Kumar K.
Hi I am using a perl module in which I have used some routines. and when I complile the script with perl -w .pm I get these errors( like routine redefined) Subroutine ExpiryMessage redefined at **.pm line 1200. Subroutine InstructorExpiryMessage redefined at ***.pm line 2454. Subroutine

RE: unable to include .pm file

2005-01-25 Thread Mark Henry
Bob, thanks! Interesting.. the C file is there (but I couldn't get it to compile.) I though they were just 2 different methods of using the module (.pm or .c).. So is it a rule that all .pm files must have supporting compiled c code somewhere else? I will read the doc also, Thanks, I ho

RE: unable to include .pm file

2005-01-24 Thread Bob Showalter
Mark Henry wrote: > All, going to try this one again, sorry..! > > --- > > Hi, > > I'm trying to use a perl module that a tool I got, ccmeter.pl, > requires and I can't no matter what I do.. > > I'm on hpux11.11, and the script was written for 5.005_03 so that's > what I'm including at the top

unable to include .pm file

2005-01-24 Thread Mark Henry
All, going to try this one again, sorry..! --- Hi, I'm trying to use a perl module that a tool I got, ccmeter.pl, requires and I can't no matter what I do.. I'm on hpux11.11, and the script was written for 5.005_03 so that’s what I'm including at the top of the perl script ( #!/apps/perl-5.005_0

Re: Need help in building a pl to a pm

2004-05-26 Thread Wiggins d Anconia
> first, sorry for top post. Second, I am trying to convert my html/pm files > to oop (pm). Can anyone give me some understanding of perl modules and some > examples. Specifically to 'bless()' and a general over view. I have searched > cpan/perl monks etc. > perldoc -f b

Need help in building a pl to a pm

2004-05-26 Thread Roberts Mr Richard L
first, sorry for top post. Second, I am trying to convert my html/pm files to oop (pm). Can anyone give me some understanding of perl modules and some examples. Specifically to 'bless()' and a general over view. I have searched cpan/perl monks etc. thanks in advance R. -Origin

Re: ASN1.pm

2003-03-13 Thread Jenda Krynicky
From: zentara <[EMAIL PROTECTED]> > On Wed, 12 Mar 2003 12:02:52 -0500, [EMAIL PROTECTED] (Susan > Aurand) wrote: > > >I am getting an error can't locate ASN1.pm, I have tracked that down > >to - I need Convert-BER-1.25.tar.gz. I have downloaded the file. I >

Re: ASN1.pm

2003-03-13 Thread zentara
On Wed, 12 Mar 2003 12:02:52 -0500, [EMAIL PROTECTED] (Susan Aurand) wrote: >I am getting an error can't locate ASN1.pm, I have tracked that down to - I need >Convert-BER-1.25.tar.gz. I have downloaded the file. I cannot find the documents on >this download, >where to un

ASN1.pm

2003-03-12 Thread Susan Aurand
I am getting an error can't locate ASN1.pm, I have tracked that down to - I need Convert-BER-1.25.tar.gz. I have downloaded the file. I cannot find the documents on this download, where to unzip and load, etc... Does anybody know. Thanks - Susan -- To unsubscribe, e-mail: [EMAIL PROT

RE: Installing a PM on Linux

2002-10-04 Thread Todd Wade
> > Hi all, this is most likely a silly question but in the past I have just > did installs of Perl modules using the perl -MCPAN -e shell command. How > do you install a .pm file if you already downloaded from somewhere? Thanks > in advance as always! > > The stan

RE: Installing a PM on Linux

2002-10-04 Thread Beau E. Cox
Hi- The standard way to install a downloaded .pm is: tar ... cd to created subdir perl Makefile.PL make make test make install See the README after untaring to make sure. Aloha => Beau. -Original Message- From: Jessee Parker [mai

RE: Installing a PM on Linux

2002-10-04 Thread Kipp, James
just open the package up and read the Readme file, it will tell you how to install it > -Original Message- > From: Jessee Parker [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 12:39 PM > To: [EMAIL PROTECTED] > Subject: Installing a PM on Linux > > &

Installing a PM on Linux

2002-10-04 Thread Jessee Parker
Hi all, this is most likely a silly question but in the past I have just did installs of Perl modules using the perl -MCPAN -e shell command. How do you install a .pm file if you already downloaded from somewhere? Thanks in advance as always! Jessee -- To unsubscribe, e-mail: [EMAIL

RE: PM installation problem

2002-07-24 Thread Timothy Johnson
Do you have a C compiler? -Original Message- From: Connie Chan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 9:40 AM To: [EMAIL PROTECTED] Subject: Re: PM installation problem Thanks a lot =) but this method don't work for me... because the cpan server ( I guess )

Re: PM installation problem

2002-07-24 Thread Connie Chan
om: "Akens, Anthony" <[EMAIL PROTECTED]> To: "Connie Chan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 25, 2002 12:26 AM Subject: RE: PM installation problem If you're using activestate perl on your windows box, just use ppm. Just

RE: PM installation problem

2002-07-24 Thread Akens, Anthony
AM To: [EMAIL PROTECTED] Subject: PM installation problem I 've just downloaded a "Imager" module, however, that's a .tar.gz file and I am using Win Me. After I extract the file, there are quite sort of files and dirs. So... how can I install it to my Perl lib or site/lib

PM installation problem

2002-07-24 Thread Connie Chan
I 've just downloaded a "Imager" module, however, that's a .tar.gz file and I am using Win Me. After I extract the file, there are quite sort of files and dirs. So... how can I install it to my Perl lib or site/lib ? Rgds, Connie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: subroutines in .pm

2001-04-30 Thread Morse, Loretta
I figured out why this isn't working. There already exists a module called B.pm in the perl/lib directory. If you change the name of module B.pm to something else, then it works!! Thanks!! -Original Message- From: Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 5:11

Re: subroutines in .pm

2001-04-27 Thread Paul
--- "Morse, Loretta" <[EMAIL PROTECTED]> wrote: > Hello, > > Does anybody know how to call a subroutine that is in a .pm file from > another .pm file. Given A.pm === package A; sub a { return "a!\n"; } 1; === and B.pm === packa

Re: subroutines in .pm

2001-04-27 Thread Johnathan Kupferer
Try throwing this into file2.pm: sub AUTOLOAD { print "What hath god wrought?\n" } And then call: file2->any_function_name; That is if you have a: use file2; AUTOLOAD is a catch all function, method really, but this should work considering how Perl b

Re: subroutines in .pm

2001-04-27 Thread Michael Lamertz
Morse, Loretta ([EMAIL PROTECTED]) wrote: > Thanks for the suggestions however I think I need to clarify > what I'm trying to do. > > I am using a WinNT system and I'm running a script that calls > a subroutine in file1.pm. Then file1.pm calls a subroutine > from fil

Re: subroutines in .pm

2001-04-27 Thread C.J. Collier
you might consider using the Package pragma: (File1.pm) use strict; Package File1; sub foo { print("Foo!\n"); } (end File1.pm) (File2.pm) use strict; Package File2; use File1; sub foo { print "File1::foo() -> "; File1::foo(); } (end File2.pm) (file main.pl)

RE: subroutines in .pm

2001-04-27 Thread Timothy Kimball
: I am using a WinNT system and I'm running a script that calls : a subroutine in file1.pm. Then file1.pm calls a subroutine : from file2.pm. The script can't seem to find the subroutine : that in is in file2.pm. Does your file1.pm have "use file2" in it? -- tdk

RE: subroutines in .pm

2001-04-27 Thread Morse, Loretta
Thanks for the suggestions however I think I need to clarify what I'm trying to do. I am using a WinNT system and I'm running a script that calls a subroutine in file1.pm. Then file1.pm calls a subroutine from file2.pm. The script can't seem to find the subroutine that in

Re: subroutines in .pm

2001-04-27 Thread Michael Lamertz
Morse, Loretta ([EMAIL PROTECTED]) wrote: > > Hello, > > Does anybody know how to call a subroutine that is in a .pm file from > another .pm file. That depends: First you have to load the file via 'require' or 'use' - perldoc them. If your other .pm cre

Re: subroutines in .pm

2001-04-27 Thread Morbus Iff
>Does anybody know how to call a subroutine that is in a .pm file from >another .pm file. Welp, if &subroutine_1 is in Library1.pm, then within Library2.pm, you could do something like: sub subroutine_2 { require "/path/to/Library1.pm"; &subroutine_1; }

subroutines in .pm

2001-04-27 Thread Morse, Loretta
Hello, Does anybody know how to call a subroutine that is in a .pm file from another .pm file.