Re: Testing for Missing Packages

2011-12-24 Thread Shlomi Fish
of modules from CPAN and I would > like an easy way to test for the existence of those modules. I > suppose the user could always run the program and then install them > whenever he gets an error about the packages not being found, but it > feels like there should be a friendlier way to ad

Testing for Missing Packages

2011-12-24 Thread Eric James Michael Ritz
the user could always run the program and then install them whenever he gets an error about the packages not being found, but it feels like there should be a friendlier way to address that. Is there a common way in Perl to say, “This program depends on these packages and requires them to be

Re: Maintain Packages

2011-09-21 Thread Francisco Rivas
Thank you very much, I am reading it right now. Have a very nice day. 2011/9/20 Magnus Woldrich > Hi Francisco, > > Hello I am willing to start maintaining a module or even a Perl package or >> library, so I would like to ask you all about the best way to start. I >> know >> that participating

Re: Maintain Packages

2011-09-21 Thread Magnus Woldrich
Hi Francisco, Hello I am willing to start maintaining a module or even a Perl package or library, so I would like to ask you all about the best way to start. I know that participating in mailing lists is a good way, but I am also asking about your experience and if there is someone who has a pac

Re: Maintain Packages

2011-09-20 Thread Francisco Rivas
Thank you very very much for all the answers. You, all, addressed me to the right direction I knew it from the beginning. Have a very nice day. 2011/9/20 Paul Johnson > On Tue, Sep 20, 2011 at 09:54:49AM +0200, Francisco Rivas wrote: > > > Hello I am willing to start maintaining a module or even

Re: Maintain Packages

2011-09-20 Thread Francisco Rivas
Thank you very very much for all the answers. You, all, addressed me to the right direction I knew it from the beginning. Have a very nice day. 2011/9/20 Paul Johnson > On Tue, Sep 20, 2011 at 09:54:49AM +0200, Francisco Rivas wrote: > > > Hello I am willing to start maintaining a module or even

Re: Maintain Packages

2011-09-20 Thread Paul Johnson
On Tue, Sep 20, 2011 at 09:54:49AM +0200, Francisco Rivas wrote: > Hello I am willing to start maintaining a module or even a Perl package or > library, so I would like to ask you all about the best way to start. I know > that participating in mailing lists is a good way, but I am also asking > ab

Re: Maintain Packages

2011-09-20 Thread Jeff Pang
20 сентября 2011, 11:55 от Francisco Rivas : > Hello I am willing to start maintaining a module or even a Perl package or > library, so I would like to ask you all about the best way to start. I know > that participating in mailing lists is a good way, but I am also asking > about your experience

Maintain Packages

2011-09-20 Thread Francisco Rivas
Hello I am willing to start maintaining a module or even a Perl package or library, so I would like to ask you all about the best way to start. I know that participating in mailing lists is a good way, but I am also asking about your experience and if there is someone who has a package and is looki

Re: discover all packages subclassing some other package

2011-06-11 Thread Peter Scott
On Sat, 11 Jun 2011 08:25:15 +0200, marcos rebelo wrote: > I need to discover all the packages (not files, the symbolic tables) > that are child of my package, something like: > > my @child = map { $_->isa('My::Class') } ->ALL_PACKAGES<- > > How do I cre

Re: discover all packages subclassing some other package

2011-06-11 Thread marcos rebelo
I found an half solution, since it doesn't get me the ->ALL_PACKAGES<- mro::get_isarev($classname) How do I get the ->ALL_PACKAGES<-? Thanks for all your help Marcos Rebelo On Sat, Jun 11, 2011 at 08:25, marcos rebelo wrote: > > I need to discover all the packages (

discover all packages subclassing some other package

2011-06-10 Thread marcos rebelo
I need to discover all the packages (not files, the symbolic tables) that are child of my package, something like: my @child = map { $_->isa('My::Class') } ->ALL_PACKAGES<- How do I create the ->ALL_PACKAGES<- list? Notice that the focus of these question is the c

Re: Packages in Perl

2010-11-12 Thread Shawn H Corey
ge; my $my_val = "Just a test"; our $my_val = "Just a test"; 1; Always have `use strict;` and `use wranings;`. By convention, all packages in Perl start with an uppercase letter. The variable you access has to be global, which is declare with "our". -- Jus

Re: Packages in Perl

2010-11-12 Thread Shlomi Fish
uot; requires explicit package name". > > my_file.pl > === > #!/usr/bin/perl > > use strict; Add use warnings. > use my_package; Please start your packages with an uppercase letters, as package names that start with a lowercase letter are reser

Packages in Perl

2010-11-12 Thread Sooraj S
Hi I am new to perl. I am trying to access a variable which is declared in a package. I have kept both the files in the same directory. But still my code errors out as ""$my_val" requires explicit package name". my_file.pl === #!/usr/bin/perl use strict; use my_package; prin

Re: libwww question (used CAs) + packages

2010-02-02 Thread Stanisław T. Findeisen
> so, but here: >> http://search.cpan.org/~dland/Crypt-SSLeay-0.57/lib/Net/SSL.pm they say: >> "Net::SSL is implemented by subclassing IO::Socket::INET". So it doesn't >> sound like a "virtual package". >> > > You're confusing packages/na

Re: libwww question (used CAs) + packages

2010-02-02 Thread Shlomi Fish
-0.57/lib/Net/SSL.pm they say: > "Net::SSL is implemented by subclassing IO::Socket::INET". So it doesn't > sound like a "virtual package". > You're confusing packages/namespaces/classes, CPAN distributions and modules (or .pm files). For more information see: htt

libwww question (used CAs) + packages

2010-02-02 Thread Stanisław T. Findeisen
Please, can anyone help me with this? I tried on lib...@perl.org list but with no luck (so far). I'd like to restrict the set of CAs LWP is using for SSL connections. Also what does this: "The Crypt::SSLeay package provides Net::SSL" (http://search.cpan.org/~dland/Crypt-SSLeay-0.57/SSLeay.pm) m

Re: Several packages in one file, no Export possible?

2009-04-15 Thread Chas. Owens
On Wed, Apr 15, 2009 at 03:24, Patrick Kirsch wrote: snip > In one file: > > package Util; > use base 'Exporter'; > our @EXPORT = ('foo', 'bar'); > > sub foo { >    print "foo!"; > } > > package Amy; > use Util;  # imports symbols in @EXPORT > foo(); > > On execution it gives the error: >  Can't l

Re: Several packages in one file, no Export possible?

2009-04-15 Thread Gunnar Hjalmarsson
Patrick Kirsch wrote: Hey list, I'm sure you can direct me: I have several packages together in one file and now I would like "use" the packages. Now my problem is that Perl's "use" wants to have a file and does not search in the executed file, see example: I

Several packages in one file, no Export possible?

2009-04-15 Thread Patrick Kirsch
Hey list, I'm sure you can direct me: I have several packages together in one file and now I would like "use" the packages. Now my problem is that Perl's "use" wants to have a file and does not search in the executed file, see example: In one file: package

Re: webmin module, no packages

2009-01-25 Thread Dr.Ruud
Gunnar Hjalmarsson wrote: sub trim { for ( $_[0] ) { s/^\s+//; s/\s+$//; } } The following respects the environment better. :) sub trim { if ( defined wantarray() ) { my @_s = @_; # copy s/\s+$//, s/^\s+// for grep defined(), @_s;

Re: webmin module, no packages

2009-01-24 Thread John Refior
> Functions and global variables in a Perl 4 style library will belong to the > package from where the library is loaded. Consequently it's possible to do > something like: > > # MyLib.pl > # > sub trim { >for ( $_[0] ) { >s/^\s+//; >s/\s+$//; >} > } > > # MyFunctio

Re: webmin module, no packages

2009-01-23 Thread Gunnar Hjalmarsson
John Refior wrote: The problem I am facing right now is that webmin doesn't use packages or classes (it is not object-oriented). Instead, API functions and variables are customarily accessed with 'do' or 'require', and variables are global accross files. Local vari

webmin module, no packages

2009-01-21 Thread John Refior
ly a web server and collection of CGI scripts in Perl. Modules can be developed in Perl that perform various linux/unix functions, and make use of the webmin API, basically a collection of perl functions, to easily accomplish a user interface. The problem I am facing right now is that webmin doesn

Re: code to fetch, configure, and build two library packages - can it be better?

2008-08-31 Thread Ed
> > > Ed > > CPAN is a core module, so any Perl installation (after a certain > version) would have CPAN packages. > Seehttp://perldoc.perl.org/index-modules-C.html I don't really get this. Do you mean all packages from CPAN are installed everywhere? Or do the CPAN modules (a

Re: code to fetch, configure, and build two library packages - can it be better?

2008-08-25 Thread yitzle
gt; package to do package installation? > > Good idea, but I need this to run on a bunch of different machines. > They all have standard perl, but not any CPAN modules... > > Thanks anyway, > > Ed CPAN is a core module, so any Perl installation (after a certain version) would ha

Re: code to fetch, configure, and build two library packages - can it be better?

2008-08-25 Thread Ed
On Aug 21, 8:32 am, [EMAIL PROTECTED] (Yitzle) wrote: > On Wed, Aug 20, 2008 at 7:37 AM, Ed <[EMAIL PROTECTED]> wrote: > > Howdy all! > > > As part of a test script, I have to make sure my test machine (i.e. > > the machine that is running the script) has libraries zlib and hdf5. I > > do that with

Re: code to fetch, configure, and build two library packages - can it be better?

2008-08-21 Thread yitzle
On Wed, Aug 20, 2008 at 7:37 AM, Ed <[EMAIL PROTECTED]> wrote: > Howdy all! > > As part of a test script, I have to make sure my test machine (i.e. > the machine that is running the script) has libraries zlib and hdf5. I > do that with this code. Is there a better way? > [snip] > > Any comments app

code to fetch, configure, and build two library packages - can it be better?

2008-08-21 Thread Ed
Howdy all! As part of a test script, I have to make sure my test machine (i.e. the machine that is running the script) has libraries zlib and hdf5. I do that with this code. Is there a better way? if ($opt{netcdf4} && ! -e $install_file) { copy("/upc/share/ed/downloads/zlib-$

Re: Exporting in two packages but one file

2007-05-08 Thread Mumia W.
On 05/08/2007 03:58 AM, Martin Barth wrote: Hi all, I have a Package A with serveral subs in it and now I want to make a package A::Types with some constants in it. I have A.pm with: ..some code and subs .. package A::Type; use constant { CONST1 => "foo", CONST2 => "bar"}; package A; ..som

Re: Exporting in two packages but one file

2007-05-08 Thread Martin Barth
Hi Jeff, that would be a solution. I wanted to be lazy and don't use the complete path. If there is no other solution I just will make a A/Type.pm thanks Martin Jeff Pang schrieb: > 2007/5/8, Martin Barth <[EMAIL PROTECTED]>: > >> >> but now I dont know to import the stuff. I can't do a "use A

Re: Exporting in two packages but one file

2007-05-08 Thread Jeff Pang
2007/5/8, Martin Barth <[EMAIL PROTECTED]>: but now I dont know to import the stuff. I can't do a "use A::Type qw(:standard)" because I dont have A/Type.pm do you have any suggestions how this can be done? Hello, How about using full package path?like, $ cat A.pm package A; sub test1 {} s

Exporting in two packages but one file

2007-05-08 Thread Martin Barth
Hi all, I have a Package A with serveral subs in it and now I want to make a package A::Types with some constants in it. I have A.pm with: ..some code and subs .. package A::Type; use constant { CONST1 => "foo", CONST2 => "bar"}; package A; ..some more code and subs.. now I wanted to use

Re: Win32::OLE packages

2007-03-27 Thread Vladimir Lemberg
eezePanes} = 1; - Original Message - From: "Vladimir Lemberg" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 27, 2007 4:49 PM Subject: Re: Win32::OLE packages Hi to all, Sorry for asking the same question.. I beleave sombody have used win32:OLE module. From th

Re: Win32::OLE packages

2007-03-27 Thread Vladimir Lemberg
t;A2:B2"); Thanks in advance, Vladimir - Original Message - From: "Vladimir Lemberg" <[EMAIL PROTECTED]> To: Sent: Monday, March 26, 2007 4:22 PM Subject: Win32::OLE packages Hello All, Does anybody know which package in Win32:OLE will Freeze Panes and ca

Win32::OLE packages

2007-03-26 Thread Vladimir Lemberg
Hello All, Does anybody know which package in Win32:OLE will Freeze Panes and call Format Report method in excel document? Thanks in advance, Vladimir

Re: Question about Installed Packages

2006-10-20 Thread Rob Dixon
pm in @INC'. > > Thanks for the info. Isn't this what the Perl Package Manager is for? Hi Chris. Please bottom-post your replies. Thanks. Perl Package Manager is an ActiveState utility that will tell you only what packages it remembers installing itself. It won't tell you abo

Re: Question about Installed Packages

2006-10-20 Thread Derek B. Smith
--- Chris Share <[EMAIL PROTECTED]> wrote: > Thanks for the info. Isn't this what the Perl > Package Manager is for? > > Rob Dixon wrote: > > Chris Share wrote: > > > >> I'm trying to implement the following code: > >> > >> > ## > >> > >> requ

Re: Question about Installed Packages

2006-10-20 Thread Chris Share
Thanks for the info. Isn't this what the Perl Package Manager is for? Rob Dixon wrote: Chris Share wrote: I'm trying to implement the following code: ## require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_pr

Re: Question about Installed Packages

2006-10-20 Thread Rob Dixon
Chris Share wrote: I'm trying to implement the following code: ## require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://search.cpan.org/'); if ($response->is_success) {

Question about Installed Packages

2006-10-20 Thread Chris Share
I'm trying to implement the following code: ## require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://search.cpan.org/'); if ($response->is_success) { print $response

Re: Need help... packages

2005-09-02 Thread JupiterHost.Net
Luinrandir wrote: OK.. maybe I'm trying to be too fancy. use tsruic the package is: ### package Names; @Countries("Ireland","Wales"); Don;t double quote string that have nothing being interpolated, use single quotes or q() %Lord{Ireland}=("Bob","Tom"); $Lord{Ireland}

Re: Need help... packages again -more

2005-09-01 Thread Luinrandir
Clark.. thanks for the help, I have to decode (look in my book and figure out what you wrote) some of the code you wrote. just wanna says thanks, but its way over my head :) but look at the seconf loop! i'm begining to understand how to use those hidden , double secret invisable vars!-Lou In the

Need help... packages again

2005-09-01 Thread Luinrandir
in the package: @Countries=("Ireland","Iceland"); $Lord{Ireland}=("Ambros","Baird","Cabhan","Dahey","Eirnin","Fergus","Glendan ","Hugh","Innis", "Liam","Murtagh","Orin","Pierce","Quinn","Ronan","Scolaighe","Turlach","Luin randir"); $Lord{Iceland}=("Sigurður","Guðmundur","Jón","Gunnar","Ólafur","M

RE: Need help... packages

2005-09-01 Thread Charles K. Clarkson
Luinrandir wrote: : OK.. maybe I'm trying to be too fancy. : : the package is: : ### : package Names; : @Countries("Ireland","Wales"); : %Lord{Ireland}=("Bob","Tom"); : %Lord{Wales}=("Ted","Ned"); : : return 1; : # : the program is: : #

Re: Need help... packages

2005-09-01 Thread John W. Krahn
Luinrandir wrote: > OK.. maybe I'm trying to be too fancy. > > the package is: > ### > package Names; > @Countries("Ireland","Wales"); The '@' sigil can only be in front of an array or a slice. You probably meant: @Countries = ( "Ireland", "Wales" ); > %Lord{Ireland}=("Bob","T

Re: Need help... packages

2005-08-31 Thread Luinrandir
my alternative is this, in the program: @[EMAIL PROTECTED]::Countries; foreach $Country(@Countries) { if ($Country eq "Ireland") [EMAIL PROTECTED]@NameList::IrelandLord} if ($Country eq "Wales") [EMAIL PROTECTED]@NameList::WalesLord} print @Lords; } but th

Need help... packages

2005-08-31 Thread Luinrandir
OK.. maybe I'm trying to be too fancy. the package is: ### package Names; @Countries("Ireland","Wales"); %Lord{Ireland}=("Bob","Tom"); %Lord{Wales}=("Ted","Ned"); return 1; # the program is: ### foreach $Country(@Names::Countries) { print qq|$Na

Re: Packages for writing screen scrapers

2005-08-24 Thread Scott R. Godin
her. Well, I'm writing another scraper and thought I would experiment with some different packages. I looked at WWW::Mechanize and it does form submission but it only appears to follow links. I could not find any functions for fetching and parsing the HTML. I get a lot of matches on CPAN when I

Packages for writing screen scrapers

2005-08-19 Thread Siegfried Heintze
another scraper and thought I would experiment with some different packages. I looked at WWW::Mechanize and it does form submission but it only appears to follow links. I could not find any functions for fetching and parsing the HTML. I get a lot of matches on CPAN when I search for WWW. Can anyone

RE: which packages are installed?

2005-08-16 Thread Brian Volk
> -Original Message- > From: Rex Rex [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 16, 2005 2:12 PM > To: Brian Volk > Cc: Beginners (E-mail) > Subject: Re: which packages are installed? > > > Brian, > > I don't think you can differentiate

Re: which packages are installed?

2005-08-16 Thread Rex Rex
or. # Rex Arul -- 08/16/2005 # List of PPM packages installed. use strict; use PPM; my(%installedPackages) = PPM::QueryInstalledPackages(); for(sort { uc($a) cmp uc($b) } keys %installedPackages){ print "$_\n"; } Hope this helps, Rex On 8/16/05, Brian Volk <[EMAIL PROTECTED]>

which packages are installed?

2005-08-16 Thread Brian Volk
Hi All, I'm currently running ActiveState's Active Perl 5.8 at work on WinXP. I'm getting a new machine (WInXP) in a couple of weeks and I was curious if anyone knows how I can list the modules that I have installed. This directory " C:\Perl\site\lib\ppm-conf " has a lot of PKG files, which I

Re: I finally did it- Packages

2005-08-15 Thread Manav Mathur
> I have just successfully figured out how to get the "return" from a > "package" > in the main program.. > > @Data = ReadFile::ReadFile("TownCrier.db"); > > Wha Hoo > > ANYONE having more informtion on making and using packages,

I finally did it- Packages

2005-08-15 Thread Luinrandir
I have just successfully figured out how to get the "return" from a "package" in the main program.. @Data = ReadFile::ReadFile("TownCrier.db"); Wha Hoo ANYONE having more informtion on making and using packages, please let me know. My 6 book library barely men

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-18 Thread Paul Johnson
On Sat, Jun 18, 2005 at 05:45:24AM -0700, Peter Scott wrote: > On Sat, 18 Jun 2005 01:38:44 +0200, Paul Johnson wrote: > > Too much work! > > > > $ perl -MDate::Manip -le 'print UnixDate Date_GetPrev("today", "sun"), "%F"' > > Or even > > $ perl -MDate::Manip -le 'print UnixDate ParseDate("last

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-18 Thread Peter Scott
On Sat, 18 Jun 2005 01:38:44 +0200, Paul Johnson wrote: > Too much work! > > $ perl -MDate::Manip -le 'print UnixDate Date_GetPrev("today", "sun"), "%F"' Or even $ perl -MDate::Manip -le 'print UnixDate ParseDate("last Sunday"), "%F"' -- Peter Scott http://www.perlmedic.com/ http://www.perldeb

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread John W. Krahn
Siegfried Heintze wrote: Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well suited for this calculation? $ perl -le'print scalar localtime; print scalar localtime time -

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread Paul Johnson
On Fri, Jun 17, 2005 at 04:18:37PM -0700, Wagner, David --- Senior Programmer Analyst --- WGO wrote: > Siegfried Heintze wrote: > > Given the current date, I want to compute the date of the Sunday > > before. There are a lot of date packages on CPAN. Can someone > > recomm

RE: How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Siegfried Heintze wrote: > Given the current date, I want to compute the date of the Sunday > before. There are a lot of date packages on CPAN. Can someone > recommend one that would be well suited for this calculation? > Siegfried How do you want to handle Sunday? Is that

How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread Siegfried Heintze
Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well suited for this calculation? Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Favorite packages for benchmarking?

2005-06-03 Thread Dave Gray
On 6/2/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > Siegfried Heintze wrote: > > There are lots of packages for date-time computations. What is the best one > > for timing computations for benchmarks? I'm thinking I want to fetch the > > time in 64 bit format ins

Re: Favorite packages for benchmarking?

2005-06-02 Thread John W. Krahn
Siegfried Heintze wrote: There are lots of packages for date-time computations. What is the best one for timing computations for benchmarks? I'm thinking I want to fetch the time in 64 bit format instead of year, mo, day, hour, min, sec, nano seconds (which is what most of the date-time pac

Favorite packages for benchmarking?

2005-06-02 Thread Siegfried Heintze
There are lots of packages for date-time computations. What is the best one for timing computations for benchmarks? I'm thinking I want to fetch the time in 64 bit format instead of year, mo, day, hour, min, sec, nano seconds (which is what most of the date-time packages do). That should

Re: Favorite Packages for Platform Neutral GUI?

2005-05-05 Thread Daniel Kasak
Siegfried Heintze wrote: Wow! Thanks for the enthusiastic responses! Well I'm a C++ guy so GTK* and WxWindows look good. But is anyone using these on ActiveState Perl? Is there some other perl for windows that I should be using for GUI? Siegfried ActiveState Perl is fine for Gtk2-Perl. At least

RE: Favorite Packages for Platform Neutral GUI?

2005-05-05 Thread Siegfried Heintze
[mailto:[EMAIL PROTECTED] >Sent: Thursday, May 05, 2005 5:20 AM>To: Siegfried Heintze; 'Perl Beginners List'>Subject: Re: Favorite Packages for Platform Neutral GUI? > >Siegfried Heintze wrote: > >>I get the impression that there are several alternatives to use=ing

Re: GUI Packages for ActiveState Perl

2005-05-05 Thread Octavian Rasnita
> > > >What GUI packages would you recommend for an ActiveState Perl? > > Tk is the most supported, and comes standard with ActiveState. > > The only problem with Tk is that it doesn't create graphical interfaces accessible for the screen readers that allow the bl

Re: Favorite Packages for Platform Neutral GUI?

2005-05-05 Thread Daniel Kasak
ply don't like QT and it's themes. I don't run KDE and don't pay too much attention to what they're doing. QT has been ported to a lot of systems, including Windows and OS X. I'm not sure how easy it would be to get the Perl bindings compiled or whether there are bi

GUI Packages for ActiveState Perl

2005-05-04 Thread Siegfried Heintze
Hmmm I guess I should have been more specific in my previous email. I'm using ActiveState on windows and I just checked out http://ppm.activestate.com/BuildStatus/5.8.html and learned that a lot of those interesting packages like java::swing and gtk don't check out on ActiveState

Favorite Packages for Platform Neutral GUI?

2005-05-04 Thread Siegfried Heintze
I get the impression that there are several alternatives to use=ing Tk for writing OS neutral GUI programs in Perl. Can anyone point me to a discussion that might help me choose one? Thanks, Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Any call-response subscription packages available ?

2005-01-13 Thread Wiggins d Anconia
> WebDragon wrote: > > I'm curious to know if there are any generic call-response subscribe > > packages out there written in Perl (preferably object oriented in design) > > > > i.e. what I am looking for is, > > { > > o user subscribes v

Re: Any call-response subscription packages available ?

2005-01-13 Thread Jenda Krynicky
From: "Scott R. Godin" <[EMAIL PROTECTED]> > WebDragon wrote: > > I'm curious to know if there are any generic call-response subscribe > > packages out there written in Perl (preferably object oriented in > > design) > > > > i.e. what I am loo

Re: Any call-response subscription packages available ?

2005-01-13 Thread Scott R. Godin
WebDragon wrote: I'm curious to know if there are any generic call-response subscribe packages out there written in Perl (preferably object oriented in design) i.e. what I am looking for is, { o user subscribes via form on website, gives e-mail address and creates a password o

Any call-response subscription packages available ?

2005-01-04 Thread WebDragon
I'm curious to know if there are any generic call-response subscribe packages out there written in Perl (preferably object oriented in design) i.e. what I am looking for is, { o user subscribes via form on website, gives e-mail address and creates a password o user is sent a 'ca

Re: passing hashes form packages

2004-07-28 Thread Wiggins d'Anconia
bzzt wrote: Hi, I am trying to pass a hash from a package to my script with the following. Can anyone tell me why it doesn't work? the_package.pm--- #!/usr/local/ActivePerl-5.6/bin/perl -w package the_package; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(%exp_hash); use WWW::

passing hashes form packages

2004-07-28 Thread bzzt
Hi, I am trying to pass a hash from a package to my script with the following. Can anyone tell me why it doesn't work? the_package.pm--- #!/usr/local/ActivePerl-5.6/bin/perl -w package the_package; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(%exp_hash); use WWW::Mechanize; u

Re: correct way to write my own packages

2004-06-18 Thread Randy W. Sims
Joseph Paish wrote: i am using packages to break up a large piece of code into smaller pieces so it is easier to maintain. the following piece of code works : -- this code loads the package #!/usr/bin/perl -w use strict ; # call the packaged code require '/path/to/pa

Re: correct way to write my own packages

2004-06-18 Thread Joseph Paish
On Friday 18 June 2004 09:57, Randy W. Sims wrote: > Joseph Paish wrote: -- a bunch of stuff deleted > > i am using packages to break up a large piece of code into smaller pieces > > I'm not sure what you're trying to accomplish. If you are going to have > no subr

Re: correct way to write my own packages

2004-06-18 Thread Randy W. Sims
Joseph Paish wrote: i am using packages to break up a large piece of code into smaller pieces so it is easier to maintain. the following piece of code works : -- this code loads the package #!/usr/bin/perl -w use strict ; # call the packaged code require '/path/to/pa

correct way to write my own packages

2004-06-18 Thread Joseph Paish
i am using packages to break up a large piece of code into smaller pieces so it is easier to maintain. the following piece of code works : -- this code loads the package #!/usr/bin/perl -w use strict ; # call the packaged code require '/path/to/package/PackageNa

Re: packages and variables

2004-03-04 Thread R. Joseph Newton
Ralf Schaa wrote: > Cheers all, > > i am doing my first steps with writing packages/modules and of course > there are problems: > > the module holds a variable in a subroutine. this variable i like to > pass to the callerprogram, Dont. Just don't. Use good design in y

RE: packages and variables

2004-03-04 Thread EUROSPACE SZARINDAR
ocess_data/_makeLevel2"; use testMod qw(&testThis $test); use strict; testMod::testThis(); print "1: ".testMod::getTest()." \n"; print "2: $test\n"; hope it help Michel -Message d'origine- De: Ralf Schaa [mailto:[EMAIL PROTECTED] Date: jeudi 4 ma

Re: packages and variables

2004-03-04 Thread zsdc
Ralf Schaa wrote: the module 'testMod.pm'' #== package testMod; use strict; use Exporter; our @ISA = ("Exporter"); our @EXPORT= qw($test &testThis); our @EXPORT_OK = qw($test &testThis); sub testThis{ our $test = "test";} 1; the caller-program 'test.pl' #=

packages and variables

2004-03-04 Thread Ralf Schaa
Cheers all, i am doing my first steps with writing packages/modules and of course there are problems: the module holds a variable in a subroutine. this variable i like to pass to the callerprogram, so it is in the @EXPORT_OK and even in the @EXPORT. So far so good, i thought! but nothing

Re: non-OO module problem -> other packages variables

2004-03-01 Thread James Edward Gray II
On Mar 1, 2004, at 7:22 AM, Gary Stainburn wrote: Hi folks, I'm trying to move my debug and validate modules to a seperate package. However, I'm having trouble. I've created a new empty module/package direct from the perldocs and then put my debug routine in. So far, so good. I then created m

Re: non-OO module problem -> other packages variables

2004-03-01 Thread Gary Stainburn
On Monday 01 March 2004 1:22 pm, Gary Stainburn wrote: > Hi folks, > > I'm trying to move my debug and validate modules to a seperate package. > However, I'm having trouble. I've created a new empty module/package > direct from the perldocs and then put my debug routine in. So far, so > good. > >

non-OO module problem -> other packages variables

2004-03-01 Thread Gary Stainburn
Hi folks, I'm trying to move my debug and validate modules to a seperate package. However, I'm having trouble. I've created a new empty module/package direct from the perldocs and then put my debug routine in. So far, so good. I then created my program to use it, but I'm having trouble acce

Re: Sharing instances of objects between packages

2004-01-05 Thread R. Joseph Newton
Shawn McKinley wrote: > Hello all, > I am wondering if you can have object inherited between > packages when the child packages have their own object > creation without explicitly setting the parent object in > the child? Is there a way to inherit the parent object? > Exampl

RE: Sharing instances of objects between packages

2004-01-05 Thread Shawn McKinley
mailto:[EMAIL PROTECTED] > Sent: Monday, January 05, 2004 7:20 PM > To: drieux > Cc: Perl Beginners Mailing List > Subject: Re: Sharing instances of objects between packages > > > On Jan 5, 2004, at 6:30 PM, drieux wrote: > > > > > On Jan 5, 2004, at 2:51 PM, James

Re: Sharing instances of objects between packages

2004-01-05 Thread Randal L. Schwartz
>>>>> "Shawn" == Shawn McKinley <[EMAIL PROTECTED]> writes: Shawn> I am wondering if you can have object inherited between Shawn> packages when Objects don't get inherited. Objects inherit methods (subroutines) from other classes (packages). Can

Re: Sharing instances of objects between packages

2004-01-05 Thread James Edward Gray II
On Jan 5, 2004, at 6:30 PM, drieux wrote: On Jan 5, 2004, at 2:51 PM, James Edward Gray II wrote: sub new { my $class = shift; my $self = $class->SUPER::new( @_ }; # call class A constructor --^ oopsie should have been a ")" Good catch. Sorry

Re: Sharing instances of objects between packages

2004-01-05 Thread drieux
On Jan 5, 2004, at 2:51 PM, James Edward Gray II wrote: On Jan 5, 2004, at 2:44 PM, Shawn McKinley wrote: Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child

Re: Sharing instances of objects between packages

2004-01-05 Thread James Edward Gray II
On Jan 5, 2004, at 2:44 PM, Shawn McKinley wrote: Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child? Is there a way to inherit the parent object? Example

Re: Sharing instances of objects between packages

2004-01-05 Thread drieux
On Jan 5, 2004, at 12:44 PM, Shawn McKinley wrote: Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child? Is there a way to inherit the parent object? Example

Sharing instances of objects between packages

2004-01-05 Thread Shawn McKinley
Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child? Is there a way to inherit the parent object? Example below (sorry for the length). TIA, Shawn A.pm

Re: diff between packages and modules

2003-12-21 Thread Randal L. Schwartz
> "R" == R Joseph Newton <[EMAIL PROTECTED]> writes: R> Message-ID: <[EMAIL PROTECTED]> R> [Randal] R> ... R> The point is that R> $instance->new R> could mean either "clone", or "make one of the same class as". You R> don't need it for "make one of the same class as", because yo

Re: diff between packages and modules

2003-12-20 Thread drieux
On Dec 20, 2003, at 12:31 PM, R. Joseph Newton wrote: [..] It might be worth a trip to the archives to review this thread. Joseph for those following along at home: being the thread I think Joseph is referring to... whi

Re: diff between packages and modules

2003-12-20 Thread R. Joseph Newton
drieux wrote: > On Dec 19, 2003, at 1:16 PM, christopher j bottaro wrote: > > > i'm reading "Programming Perl" and i'm on the chapter about packages. it > says > > that packages and modules are very similar and that novices can think of > > packages

Re: diff between packages and modules

2003-12-20 Thread R. Joseph Newton
it can also cause problems. Perl has its own structure, distinct from any other programming language. If you try to superimpose C++ paradigms on Perl syntax you will miss the point. Bob is right, I think, that Perl packages are *closer* to C++ namespaces than to C++ classes. You can import any fun

  1   2   >