[30522] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1765 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Aug 4 17:51:18 2008

Date: Mon, 4 Aug 2008 00:09:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 4 Aug 2008     Volume: 11 Number: 1765

Today's topics:
    Re: DBI:Pg script returning 'can't call method' error <1usa@llenroc.ude.invalid>
        Debugger: Pipe print output into shell <mstep@podiuminternational.org>
    Re: Fail to upgrade all the packages of perl in Linux e <kwan.jingx@gmail.com>
    Re: Fail to upgrade all the packages of perl in Linux e (Jens Thoms Toerring)
    Re: FAQ 4.61 How can I always keep my hash sorted? <bill@ts1000.us>
    Re: FAQ 4.61 How can I always keep my hash sorted? xhoster@gmail.com
    Re: FAQ 4.61 How can I always keep my hash sorted? <jurgenex@hotmail.com>
    Re: Is there a way to spawn a program from perl that is <ced@blv-sam-01.ca.boeing.com>
        match pattern ********* <ela@yantai.org>
    Re: match pattern ********* <jurgenex@hotmail.com>
    Re: match pattern ********* <JustMe@somewhere.de>
    Re: match pattern ********* <tadmc@seesig.invalid>
        new CPAN modules on Mon Aug  4 2008 (Randal Schwartz)
    Re: Trying to use my own module directory, but Perl doe <usenet@davidfilmer.com>
    Re: Trying to use my own module directory, but Perl doe <usenet@davidfilmer.com>
        Trying to use my own module directory, but Perl doesn't <usenet@davidfilmer.com>
    Re: Trying to use my own module directory, but Perl doe <noreply@gunnar.cc>
    Re: Trying to use my own module directory, but Perl doe <ben@morrow.me.uk>
    Re: Trying to use my own module directory, but Perl doe <john@castleamber.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sun, 03 Aug 2008 12:37:47 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: DBI:Pg script returning 'can't call method' error
Message-Id: <Xns9AEF57C5EC798asu1cornelledu@127.0.0.1>

marko <marko.online@gmail.com> wrote in news:d5a3ad51-1e35-4e09-8441-
ddac55d3cb05@l64g2000hse.googlegroups.com:

> I think the vast difference between defined and undef is one 
> of them.  undef will change the value of your variable and 
> defined is a test!

It is not as if the difference is a secret. If the passive voice used in 
'defined' versus the active 'undef' is not enough of a clue, note:

perldoc -f undef

  undef   Undefines the value of EXPR,

perldoc -f defined

 defined Returns a Boolean value telling whether EXPR has a value other
         than the undefined value "undef".

> Well, that was obviously my problem.  It works now.

Good. Keep in mind that reading parts of the documentation is a useful 
and enjoyable habit even when you do not have a problem.

Sinan

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/


------------------------------

Date: Sun, 3 Aug 2008 00:11:16 -0700 (PDT)
From: Marek <mstep@podiuminternational.org>
Subject: Debugger: Pipe print output into shell
Message-Id: <760d1fa3-a275-4655-aeae-ff530d9481db@x35g2000hsb.googlegroups.com>



Hello all,

I get now answer to this question on perl.beginners ... Could somebody
give me an answer in this group? I already asked this question one
year ago, and got an good solution, but I am unable to find it in the
internet.


while being in the debugger, how do I pipe all printings going to a
OUTputfile like:

print OUT "text text text";

into the shell?

I read perldebug and perldebguts, but probably I just overread it?

Thank you for your help

marek


------------------------------

Date: Sun, 3 Aug 2008 08:18:48 -0700 (PDT)
From: kwan <kwan.jingx@gmail.com>
Subject: Re: Fail to upgrade all the packages of perl in Linux environment
Message-Id: <0416663b-6640-49d2-b390-6aa393268004@q5g2000prf.googlegroups.com>

On Aug 2, 1:24=A0pm, J=FCrgen Exner <jurge...@hotmail.com> wrote:
> j...@toerring.de (Jens Thoms Toerring) wrote:
>
> >kwan <kwan.ji...@gmail.com> wrote:
> >> I want to upgrade all the packages in perl, but fail. Any sugguest?
>
> >The only suggestion I can come up with is: rephrase this so that
> >it contains information that tells what exactly you did try to
> >update your Perl installation and what exactly is meant by "but
> >fail". Without that informations it's rather unlikely that some-
> >body will be able to help you.
>
> Also what did he mean by packages? Maybe PPM? Maybe the installation
> packages for the Perl component of his Linux distribution (whichever
> that might be)?
>
> jue

Perl v5.8

I used the
#perl -MCPAN -e shell.
then I tried: #cpan> install bundle::cpan
It did not allow me to run the above command. I wounder if there is
any problem with my Perl.
I also have problems to install some packages such as IO::Sock::SSL,
Unicode::MapUTF8, and Jcode.
These packages are important for me to use the LDAP to work with
Twiki.
Thank you




------------------------------

Date: 3 Aug 2008 16:12:49 GMT
From: jt@toerring.de (Jens Thoms Toerring)
Subject: Re: Fail to upgrade all the packages of perl in Linux environment
Message-Id: <6fm3o1F9r94lU1@mid.uni-berlin.de>

kwan <kwan.jingx@gmail.com> wrote:
> On Aug 2, 1:24 pm, Jürgen Exner <jurge...@hotmail.com> wrote:
> > j...@toerring.de (Jens Thoms Toerring) wrote:
> >
> > >kwan <kwan.ji...@gmail.com> wrote:
> > >> I want to upgrade all the packages in perl, but fail. Any sugguest?
> >
> > >The only suggestion I can come up with is: rephrase this so that
> > >it contains information that tells what exactly you did try to
> > >update your Perl installation and what exactly is meant by "but
> > >fail". Without that informations it's rather unlikely that some-
> > >body will be able to help you.
> >
> > Also what did he mean by packages? Maybe PPM? Maybe the installation
> > packages for the Perl component of his Linux distribution (whichever
> > that might be)?

> Perl v5.8

> I used the
> #perl -MCPAN -e shell.
> then I tried: #cpan> install bundle::cpan

Shouldn't you have used

#cpan> install Bundle::CPAN"

Module names are, as everything else in Perl, case-sensitive...

> It did not allow me to run the above command. I wounder if there is
> any problem with my Perl.

Please post the exact error message, not something you made up.
Only the exact error messages tell what went wrong. "It did not
allow me to run the above command" doesn't.

> I also have problems to install some packages such as IO::Sock::SSL,
> Unicode::MapUTF8, and Jcode.

How did installing them fails? Again, please post the exact command
you used and the exact error messages.

Also note that you probably meant to install IO::Socket::SSL and
not IO::Sock::SSL (which doesn't exist as far as I can see).

                             Regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de


------------------------------

Date: Sun, 3 Aug 2008 14:07:43 -0700 (PDT)
From: Bill H <bill@ts1000.us>
Subject: Re: FAQ 4.61 How can I always keep my hash sorted?
Message-Id: <23c2ab06-51d5-4ad3-b70a-b3bca35d0ebf@25g2000hsx.googlegroups.com>

On Aug 3, 3:03=A0pm, PerlFAQ Server <br...@stonehenge.com> wrote:
> This is an excerpt from the latest version perlfaq4.pod, which
> comes with the standard Perl distribution. These postings aim to
> reduce the number of repeated questions as well as allow the community
> to review and update the answers. The latest version of the complete
> perlfaq is athttp://faq.perl.org.
>
> --------------------------------------------------------------------
>
> 4.61: How can I always keep my hash sorted?
>
> =A0 =A0 You can look into using the "DB_File" module and "tie()" using th=
e
> =A0 =A0 $DB_BTREE hash bindings as documented in "In Memory Databases" in
> =A0 =A0 DB_File. The "Tie::IxHash" module from CPAN might also be instruc=
tive.
> =A0 =A0 Although this does keep your hash sorted, you might not like the =
slow
> =A0 =A0 down you suffer from the tie interface. Are you sure you need to =
do
> =A0 =A0 this? :)
>
> --------------------------------------------------------------------
>
> The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
> are not necessarily experts in every domain where Perl might show up,
> so please include as much information as possible and relevant in any
> corrections. The perlfaq-workers also don't have access to every
> operating system or platform, so please include relevant details for
> corrections to examples that do not work on particular platforms.
> Working code is greatly appreciated.
>
> If you'd like to help maintain the perlfaq, see the details in
> perlfaq.pod.

Iwonder when this would be an issue? If you had an unsorted hash you
could just sort it. If you added elements to it again you could just
sort it. Why would there be a need for this hash to always be sorted?
Is it going to unsort itself?

One thing that would be nice, maybe it is already available, is the
ability to sort elements into a sorted hash. Something like a
combination join and sort where you can add an element to a hash and
have it sort into the hash.

Bill H


------------------------------

Date: 03 Aug 2008 21:26:52 GMT
From: xhoster@gmail.com
Subject: Re: FAQ 4.61 How can I always keep my hash sorted?
Message-Id: <20080803172655.229$yP@newsreader.com>

Bill H <bill@ts1000.us> wrote:
> On Aug 3, 3:03=A0pm, PerlFAQ Server <br...@stonehenge.com> wrote:
> >
> > 4.61: How can I always keep my hash sorted?
>
> Iwonder when this would be an issue? If you had an unsorted hash you
> could just sort it. If you added elements to it again you could just
> sort it. Why would there be a need for this hash to always be sorted?

If you sort after every time you add an element, you get an O((NlnN)^2)
or O(N^2 lnN) data structure, which is rather undesirable when other
implementations are O(NlnN)

> Is it going to unsort itself?

If you are talking about the native Perl hash, it will never be sorted in
the first place.  If you are talking about something else, you will have to
tell us what it is.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.


------------------------------

Date: Sun, 03 Aug 2008 23:03:46 GMT
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: FAQ 4.61 How can I always keep my hash sorted?
Message-Id: <49dc94514aubs6h0s3q3fhvpancofs8s20@4ax.com>

Bill H <bill@ts1000.us> wrote:
>On Aug 3, 3:03 pm, PerlFAQ Server <br...@stonehenge.com> wrote:
>> If you'd like to help maintain the perlfaq, see the details in
>> perlfaq.pod.
>
>Iwonder when this would be an issue? 

When what would be an issue? Maintaining the FAQ?

>If you had an unsorted hash you
>could just sort it. If you added elements to it again you could just
>sort it. 

Actually I strongly disagree with this wording. A hash is never sorted
and cannot be sorted(*). Why? Because there is no sequence among hash
elements. There simply is no such thing as a first element or a next
element. Even if you had a specific hash and one specific element in
that hash: which element is the next element?
Sorting a hash is like sorting the lenght() function or a set. The very
notion of it is non-sensical.

Of course you can sort all keys or all values or whatever after you put
those into a list/array. But you cannot sort a hash because a hash
opposite to an array or list does not have a sequence on its members.

If you want a sorted hash, then you don't want a hash but some other
data structure.

jue

*: Yes, the each() function enumerates all elements of a hash in a fixed
sequence. But the order is arbitrary and the function itself -at least
in scalar context- an oddity, provided only to mimic the for()
functionality for lists. 


------------------------------

Date: Sun, 3 Aug 2008 21:16:24 -0700 (PDT)
From: "comp.lang.c++" <ced@blv-sam-01.ca.boeing.com>
Subject: Re: Is there a way to spawn a program from perl that is independent?
Message-Id: <d70f6f7f-1dff-472e-b086-a249a73aac48@p31g2000prf.googlegroups.com>

On Aug 2, 9:10 am, Tom Wyley <twxxx...@hooya.com> wrote:
> That is...
>
> Backtics and System will start up a new program but it is modal - to get
> back to the original script the spawned program must be closed.
>
> Exec kills the original script when the spawned program starts up.
>
> I want a script to throw off another script and go on with its business.
>
> It would appear that Fork might the the answer, but so far RTFM'ing about
> Fork is getting me even more confused.
>
> Any other way?


A Win32 solution is mentioned here:

http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/8e11b7e2e488f27b/a39bcde72f43cb2f?hl=en&lnk=st&q=#a39bcde72f43cb2f

In Unix, you could background the other script in
a subshell:

0 == system "(/path/to/other_script &)"
   or die "system failed: $?";

But getting the return status of the backgrounded
task would be messy and you'd lose the control
and flexibility of the recommened IPC::Run or
fork solutions.

--
Charles DeRykus


------------------------------

Date: Sun, 3 Aug 2008 16:34:30 +0800
From: "ela" <ela@yantai.org>
Subject: match pattern *********
Message-Id: <g73qin$j5n$1@ijustice.itsc.cuhk.edu.hk>

I wanna search a string "*********" and I remember some special characters 
can be used to tell the match so I need not type something like:

\*\*\*\*...

Would anybody know how to do that? 




------------------------------

Date: Sun, 03 Aug 2008 08:39:55 GMT
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: match pattern *********
Message-Id: <3gra949ccss6hiqsp18djij3vg1ipn2ho8@4ax.com>

"ela" <ela@yantai.org> wrote:
>I wanna search a string "*********" and I remember some special characters 
>can be used to tell the match so I need not type something like:
>
>\*\*\*\*...
>
>Would anybody know how to do that? 

See \Q in "perldoc perlre".

jue


------------------------------

Date: Sun, 3 Aug 2008 16:13:06 +0200
From: Hartmut Camphausen <JustMe@somewhere.de>
Subject: Re: match pattern *********
Message-Id: <MPG.22ffdb60ffceb7d989690@news.t-online.de>

ela schrieb:

> I wanna search a string "*********" and I remember some special characters 
> can be used to tell the match so I need not type something like:
> 
> \*\*\*\*...


(1) See jue's hint
(2) use the ...{}-quantifier, eg.
 
    /\*{5}/

    to match exactly 5 asterisks, or

    /\*{2,7}/

    to match two up to seven of them.


Again, read
	 perldoc perlre



hth + mfg,
Hartmut

-- 
  ------------------------------------------------
Hartmut Camphausen      h.camp[bei]textix[punkt]de


------------------------------

Date: Sun, 3 Aug 2008 10:11:54 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: match pattern *********
Message-Id: <slrng9bilq.qtp.tadmc@tadmc30.sbcglobal.net>

Hartmut Camphausen <JustMe@somewhere.de> wrote:

> (2) use the ...{}-quantifier, eg.
>  
>     /\*{5}/
>
>     to match exactly 5 asterisks, or


Or, if you are backslash-averse as I am, you can write it as:

    /[*]{5}/


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


------------------------------

Date: Mon, 4 Aug 2008 04:42:21 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Mon Aug  4 2008
Message-Id: <K527qL.13n2@zorch.sf-bay.org>

The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN).  You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.

Apache-Session-1.86_03
http://search.cpan.org/~chorny/Apache-Session-1.86_03/
A persistence framework for session data 
----
App-Daemon-0.02
http://search.cpan.org/~mschilli/App-Daemon-0.02/
Start an Application as a Daemon 
----
App-Daemon-0.03
http://search.cpan.org/~mschilli/App-Daemon-0.03/
Start an Application as a Daemon 
----
App-ZofCMS-Plugin-Cookies-0.0102
http://search.cpan.org/~zoffix/App-ZofCMS-Plugin-Cookies-0.0102/
HTTP Cookie handling plugin for ZofCMS 
----
App-ZofCMS-Plugin-QueryToTemplate-0.0102
http://search.cpan.org/~zoffix/App-ZofCMS-Plugin-QueryToTemplate-0.0102/
ZofCMS plugin to automagically make query parameters available in the template 
----
App-ZofCMS-Plugin-TOC-0.0103
http://search.cpan.org/~zoffix/App-ZofCMS-Plugin-TOC-0.0103/
Table of Contents building plugin for ZofCMS 
----
App-ZofCMS-Plugin-Tagged-0.0252
http://search.cpan.org/~zoffix/App-ZofCMS-Plugin-Tagged-0.0252/
ZofCMS plugin to fill templates with data from query, template variables and configuration using <TAGS> 
----
App-ZofCMS-Test-Plugin-0.0102
http://search.cpan.org/~zoffix/App-ZofCMS-Test-Plugin-0.0102/
test module for testing ZofCMS plugins 
----
CGI-Cookie-XS-0.11
http://search.cpan.org/~agent/CGI-Cookie-XS-0.11/
HTTP Cookie parser in C (Please use CGI::Cookie::XS instead) 
----
CGI-Lazy-0.02-r3
http://search.cpan.org/~vayde/CGI-Lazy-0.02-r3/
----
CGI-Lazy-ModPerl-0.02-r3
http://search.cpan.org/~vayde/CGI-Lazy-ModPerl-0.02-r3/
----
Carp-Undead-0.00003
http://search.cpan.org/~nishikawa/Carp-Undead-0.00003/
override die function and warn function; 
----
Catalyst-Authentication-Credential-Authen-Simple-0.02
http://search.cpan.org/~jlmartin/Catalyst-Authentication-Credential-Authen-Simple-0.02/
Verify credentials with the Authen::Simple framework 
----
Catalyst-View-RRDGraph-0.01
http://search.cpan.org/~jlmartin/Catalyst-View-RRDGraph-0.01/
RRD Graph View Class 
----
CatalystX-ListFramework-Builder-0.13
http://search.cpan.org/~oliver/CatalystX-ListFramework-Builder-0.13/
Instant AJAX web front-end for DBIx::Class, using Catalyst 
----
CatalystX-ListFramework-Builder-0.14
http://search.cpan.org/~oliver/CatalystX-ListFramework-Builder-0.14/
Instant AJAX web front-end for DBIx::Class, using Catalyst 
----
Chess-Coverage-0.01
http://search.cpan.org/~gene/Chess-Coverage-0.01/
Expose chess ply potential energy 
----
Chess-Coverage-0.02
http://search.cpan.org/~gene/Chess-Coverage-0.02/
Expose chess ply potential energy 
----
Chess-Coverage-0.04
http://search.cpan.org/~gene/Chess-Coverage-0.04/
Expose chess ply potential energy 
----
Class-MOP-0.64
http://search.cpan.org/~sartak/Class-MOP-0.64/
A Meta Object Protocol for Perl 5 
----
ClearPress-236
http://search.cpan.org/~rpettett/ClearPress-236/
Simple, fresh & fruity MVC framework 
----
Cookie-XS-0.10
http://search.cpan.org/~agent/Cookie-XS-0.10/
HTTP Cookie parser in C (Please use CGI::Cookie::XS instead) 
----
DBD-Pg-2.9.0
http://search.cpan.org/~turnstep/DBD-Pg-2.9.0/
PostgreSQL database driver for the DBI module 
----
Data-RandomKeep-0.02
http://search.cpan.org/~lucs/Data-RandomKeep-0.02/
Randomly keep a given number of offered items. 
----
Data-Report-0.07
http://search.cpan.org/~jv/Data-Report-0.07/
Framework for flexible reporting 
----
DateTime-Format-Natural-0.71_03
http://search.cpan.org/~schubiger/DateTime-Format-Natural-0.71_03/
Create machine readable date/time with natural parsing logic 
----
File-DirCompare-0.5
http://search.cpan.org/~gavinc/File-DirCompare-0.5/
Perl module to compare two directories using callbacks. 
----
Geo-IP-PurePerl-1.20
http://search.cpan.org/~borisz/Geo-IP-PurePerl-1.20/
Look up country by IP Address 
----
HTTP-Cookies-Mozilla-2.00_03
http://search.cpan.org/~polettix/HTTP-Cookies-Mozilla-2.00_03/
Cookie storage and management for Mozilla 
----
Ham-APRS-LastPacket-0.02
http://search.cpan.org/~bradmc/Ham-APRS-LastPacket-0.02/
A simple interface to retrieve the most recent packet data for a station from APRS-IS. 
----
JavaScript-1.09
http://search.cpan.org/~claesjac/JavaScript-1.09/
Perl extension for executing embedded JavaScript 
----
Locale-Maketext-TieHash-L10N-0.08
http://search.cpan.org/~steffenw/Locale-Maketext-TieHash-L10N-0.08/
Tying language handle to a hash 
----
MARC-Fast-0.09
http://search.cpan.org/~dpavlin/MARC-Fast-0.09/
Very fast implementation of MARC database reader 
----
Module-Release-2.00_01
http://search.cpan.org/~bdfoy/Module-Release-2.00_01/
Automate software releases 
----
Moose-0.55
http://search.cpan.org/~sartak/Moose-0.55/
A postmodern object system for Perl 5 
----
Muldis-Rosetta-0.8.0
http://search.cpan.org/~duncand/Muldis-Rosetta-0.8.0/
Full-featured truly relational DBMS in Perl 
----
Net-Flickr-Geo-0.72
http://search.cpan.org/~ascope/Net-Flickr-Geo-0.72/
tools for working with geotagged Flickr photos 
----
POE-Component-CPANPLUS-YACSmoke-1.40
http://search.cpan.org/~bingos/POE-Component-CPANPLUS-YACSmoke-1.40/
Bringing the power of POE to CPAN smoke testing. 
----
POE-Component-CPANPLUS-YACSmoke-1.42
http://search.cpan.org/~bingos/POE-Component-CPANPLUS-YACSmoke-1.42/
Bringing the power of POE to CPAN smoke testing. 
----
POE-Component-IRC-Plugin-BasePoCoWrap-0.004
http://search.cpan.org/~zoffix/POE-Component-IRC-Plugin-BasePoCoWrap-0.004/
base talking/ban/trigger functionality for plugins using POE::Component::* 
----
POE-Component-IRC-Plugin-WWW-CPANRatings-RSS-0.0101
http://search.cpan.org/~zoffix/POE-Component-IRC-Plugin-WWW-CPANRatings-RSS-0.0101/
announce CPAN ratings on IRC from RSS feed on http://cpanratings.perl.org/ 
----
POE-Component-IRC-Plugin-WWW-CPANRatings-RSS-0.0102
http://search.cpan.org/~zoffix/POE-Component-IRC-Plugin-WWW-CPANRatings-RSS-0.0102/
announce CPAN ratings on IRC from RSS feed on http://cpanratings.perl.org/ 
----
POE-Component-IRC-Plugin-WWW-Lipsum-0.0101
http://search.cpan.org/~zoffix/POE-Component-IRC-Plugin-WWW-Lipsum-0.0101/
plugin to generate Lorem Ipsum text in IRC 
----
POE-Component-IRC-Plugin-WWW-Lipsum-0.0102
http://search.cpan.org/~zoffix/POE-Component-IRC-Plugin-WWW-Lipsum-0.0102/
plugin to generate Lorem Ipsum text in IRC 
----
POE-Component-WWW-CPANRatings-RSS-0.0101
http://search.cpan.org/~zoffix/POE-Component-WWW-CPANRatings-RSS-0.0101/
non-blocking wrapper around WWW::CPANRatings::RSS 
----
POE-Component-WWW-Lipsum-0.0101
http://search.cpan.org/~zoffix/POE-Component-WWW-Lipsum-0.0101/
non-blocking wrapper around WWW::Lipsum 
----
POE-Component-WWW-Lipsum-0.0102
http://search.cpan.org/~zoffix/POE-Component-WWW-Lipsum-0.0102/
non-blocking wrapper around WWW::Lipsum 
----
POOF-1.0
http://search.cpan.org/~bmillares/POOF-1.0/
Perl extension that provides stronger typing, encapsulation and inheritance. 
----
Padre-0.03_02
http://search.cpan.org/~szabgab/Padre-0.03_02/
Perl Application Development and Refactoring Environment 
----
Padre-Plugin-PAR-0.01
http://search.cpan.org/~szabgab/Padre-Plugin-PAR-0.01/
PAR generation from Padre 
----
Path-Abstract-0.085
http://search.cpan.org/~rkrimen/Path-Abstract-0.085/
Fast and featureful UNIX-style path manipulation 
----
RSSycklr-0.01
http://search.cpan.org/~ashley/RSSycklr-0.01/
(beta) Highly configurable recycling of syndication (RSS/Atom) feeds into tailored, guaranteed XHTML fragments. 
----
Test-Aggregate-0.32_01
http://search.cpan.org/~ovid/Test-Aggregate-0.32_01/
Aggregate *.t tests to make them run faster. 
----
Test-Aggregate-0.32_02
http://search.cpan.org/~ovid/Test-Aggregate-0.32_02/
Aggregate *.t tests to make them run faster. 
----
Test-Classy-0.03
http://search.cpan.org/~ishigaki/Test-Classy-0.03/
write your unit tests in other modules than *.t 
----
Test-Prereq-1.034
http://search.cpan.org/~bdfoy/Test-Prereq-1.034/
check if Makefile.PL has the right pre-requisites 
----
Tkx-FindBar-0.02
http://search.cpan.org/~mjcarman/Tkx-FindBar-0.02/
Perl Tkx extension for an incremental search toolbar 
----
Tkx-FindBar-0.03
http://search.cpan.org/~mjcarman/Tkx-FindBar-0.03/
Perl Tkx extension for an incremental search toolbar 
----
Tkx-FindBar-0.04
http://search.cpan.org/~mjcarman/Tkx-FindBar-0.04/
Perl Tkx extension for an incremental search toolbar 
----
VS-Chart-0.06
http://search.cpan.org/~claesjac/VS-Chart-0.06/
Simple module to create beautifully looking charts 
----
WWW-CPANRatings-RSS-0.0101
http://search.cpan.org/~zoffix/WWW-CPANRatings-RSS-0.0101/
get information from RSS feed on http://cpanratings.perl.org/ 
----
WWW-CPANRatings-RSS-0.0201
http://search.cpan.org/~zoffix/WWW-CPANRatings-RSS-0.0201/
get information from RSS feed on http://cpanratings.perl.org/ 
----
WWW-CPANRatings-RSS-0.0202
http://search.cpan.org/~zoffix/WWW-CPANRatings-RSS-0.0202/
get information from RSS feed on http://cpanratings.perl.org/ 
----
WWW-CPANRatings-RSS-0.0203
http://search.cpan.org/~zoffix/WWW-CPANRatings-RSS-0.0203/
get information from RSS feed on http://cpanratings.perl.org/ 
----
cpan_bot-0.11
http://search.cpan.org/~zoffix/cpan_bot-0.11/
an IRC CPAN Info bot 


If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.

This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
  http://www.stonehenge.com/merlyn/LinuxMag/col82.html

print "Just another Perl hacker," # the original

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


------------------------------

Date: Sun, 3 Aug 2008 21:35:45 -0700 (PDT)
From: David Filmer <usenet@davidfilmer.com>
Subject: Re: Trying to use my own module directory, but Perl doesn't see  @EXPORT
Message-Id: <5032cf42-8b4f-45fd-bfac-5c6c044313fa@i24g2000prf.googlegroups.com>

On Aug 3, 6:27=A0pm, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote:
> Shouldn't that be
> =A0 =A0 =A0package Filmer::Foo;

Maybe it should be (I dunno) but it makes no difference when I try
this suggestion, except the error message becomes

>>> Undefined subroutine &Filmer::Foo::bar called at ...

--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)


------------------------------

Date: Sun, 3 Aug 2008 21:43:21 -0700 (PDT)
From: David Filmer <usenet@davidfilmer.com>
Subject: Re: Trying to use my own module directory, but Perl doesn't see  @EXPORT
Message-Id: <5b693536-10fb-4c91-9c99-b27f567c27d9@a3g2000prm.googlegroups.com>

On Aug 3, 6:29=A0pm, Ben Morrow <b...@morrow.me.uk> wrote:
> You would probably be better off creating proper CPAN-style
> distributions and installing them in the normal way.

Maybe so.  Nonetheless, I think my way (which is very specific to
myself) ought to work.


> You have created the file Filmer/Foo.pm but in this file you declare the
> package Foo. 'use' assumes that file will declare the package
> Filmer::Foo, so if you want ->import (and thus Exporter) to work, that
> is what you will need to call the package.

Ben - I sense the answer to my question is here, but I cannot quite
see it.  Would you kindly elaborate?

--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)


------------------------------

Date: Sun, 3 Aug 2008 17:37:55 -0700 (PDT)
From: David Filmer <usenet@davidfilmer.com>
Subject: Trying to use my own module directory, but Perl doesn't see @EXPORT
Message-Id: <7a4e4ada-d250-4405-9439-316162966fd8@b2g2000prf.googlegroups.com>

Greetings.

I want to have my own module directory that is visible to all my Perl
programs without futzing with "use libs" and such in each program (and
I don't want to recompile Perl either).  So I decided to put my module
in some version-independent directory in @INC.

So I do
   perl -le 'print join "\n", @INC'
and see
   ...
   /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi
   /usr/lib/perl5/site_perl/5.8.8
   /usr/lib/perl5/site_perl
   /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi
   ...

Hmm.   /usr/lib/perl5/site_perl sounds good.  So I create a
directory  /usr/lib/perl5/site_perl/Filmer and therein place a little
test module named Foo.pm:

package Foo;
   BEGIN {
      use Exporter   ();
      our @ISA    = qw(Exporter);
      our @EXPORT = qw{ &bar };
   }
   sub bar {
      return "Hello World\n";
   }
   1;

Now I write a little test program to call Filmer::Foo::bar

#!/usr/bin/perl
   use Filmer::Foo;
   print bar();

And Perl complains:

   Undefined subroutine &main::bar called at ./foo.pl

It doesn't matter if I
   use Filmer::Foo qw{ bar };
or
   print Filmer::Foo::bar();

I know that Perl is checking in the Filmer directory, because if I try
to
   use Filmer::Baz;   # invalid - there is no Baz.pm
then Perl (rightly) complains
   Can't locate Filmer/Baz.pm in...

So why isn't Perl finding bar()?

Any insight is greatly appreciated.

Thanks!

--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)



------------------------------

Date: Mon, 04 Aug 2008 03:27:42 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Trying to use my own module directory, but Perl doesn't see @EXPORT
Message-Id: <6fn48qFc144mU1@mid.individual.net>

David Filmer wrote:
> Hmm.   /usr/lib/perl5/site_perl sounds good.  So I create a
> directory  /usr/lib/perl5/site_perl/Filmer and therein place a little
> test module named Foo.pm:
> 
> package Foo;

Shouldn't that be

     package Filmer::Foo;

?

>    BEGIN {
>       use Exporter   ();
>       our @ISA    = qw(Exporter);
>       our @EXPORT = qw{ &bar };
>    }
>    sub bar {
>       return "Hello World\n";
>    }
>    1;

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


------------------------------

Date: Mon, 4 Aug 2008 02:29:12 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Trying to use my own module directory, but Perl doesn't see @EXPORT
Message-Id: <8k2im5-rpg.ln1@osiris.mauzo.dyndns.org>


Quoth David Filmer <usenet@davidfilmer.com>:
> Greetings.
> 
> I want to have my own module directory that is visible to all my Perl
> programs without futzing with "use libs" and such in each program (and
> I don't want to recompile Perl either).  So I decided to put my module
> in some version-independent directory in @INC.

You would probably be better off creating proper CPAN-style
distributions and installing them in the normal way. That way, when you
want to move the code to a new machine, you will already have all the
dependancy information. Adam Kennedy's pip (on CPAN) can be helpful when
installing distributions that aren't actually on CPAN.

> Hmm.   /usr/lib/perl5/site_perl sounds good.  So I create a
> directory  /usr/lib/perl5/site_perl/Filmer and therein place a little
> test module named Foo.pm:
> 
> package Foo;

You have created the file Filmer/Foo.pm but in this file you declare the
package Foo. 'use' assumes that file will declare the package
Filmer::Foo, so if you want ->import (and thus Exporter) to work, that
is what you will need to call the package.

> Now I write a little test program to call Filmer::Foo::bar
> 
> #!/usr/bin/perl
>    use Filmer::Foo;
>    print bar();
> 
> And Perl complains:
> 
>    Undefined subroutine &main::bar called at ./foo.pl
> 
> It doesn't matter if I
>    use Filmer::Foo qw{ bar };
> or
>    print Filmer::Foo::bar();

Well, no. Neither Filmer::Foo->import nor Filmer::Foo::bar exist, so
Perl can't very well call them :).

Ben

-- 
               We do not stop playing because we grow old; 
                  we grow old because we stop playing.
                            ben@morrow.me.uk


------------------------------

Date: 4 Aug 2008 02:14:00 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: Trying to use my own module directory, but Perl doesn't see @EXPORT
Message-Id: <Xns9AEFD7FE3EEC4castleamber@130.133.1.4>

David Filmer <usenet@davidfilmer.com> wrote:

> Greetings.
> 
> I want to have my own module directory that is visible to all my Perl
> programs without futzing with "use libs" and such in each program (and
> I don't want to recompile Perl either).  So I decided to put my module
> in some version-independent directory in @INC.

How about setting PERL5LIB ?

PERL5LIB

    A colon-separated list of directories in which to look for Perl 
library files before looking in the standard library and the current 
directory. If PERL5LIB is not defined, PERLLIB is used. When running taint 
checks (because the script was running setuid or setgid, or the -T switch 
was used), neither variable is used. The script should instead say

        use lib "/my/directory";

source: http://www.perl.com/doc/manual/html/pod/perlrun.html

-- 
John

http://johnbokma.com/perl/


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 1765
***************************************


home help back first fref pref prev next nref lref last post