[23190] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 5411 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 22 18:12:07 2003

Date: Fri, 22 Aug 2003 15:10:12 -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           Fri, 22 Aug 2003     Volume: 10 Number: 5411

Today's topics:
    Re: Resend: using Getopt::Long with option value having <jwillmore@cyberia.com>
    Re: Resend: using Getopt::Long with option value having <krahnj@acm.org>
        stemming algotithms in perl <fm_duendeBASURA@yahoo.com>
    Re: stemming algotithms in perl <bharnish@technologist.com>
    Re: stemming algotithms in perl <newsfeed@boog.co.uk>
    Re: Using DBI from within Apache (Helgi Briem)
    Re: Using DBI from within Apache <hogspog@hotmail.com>
        What ever happened to comp.lang.perl ? <tcurrey@no.no.no.i.said.no>
    Re: What ever happened to comp.lang.perl ? <matthew.garrish@sympatico.ca>
    Re: What ever happened to comp.lang.perl ? <rgarciasuarez@free.fr>
    Re: What ever happened to comp.lang.perl ? (Jon Bell)
    Re: What ever happened to comp.lang.perl ? <matthew.garrish@sympatico.ca>
        Xml Parsing Problem <kurt-simone@t-online.de>
    Re:  <bwalton@rochester.rr.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Fri, 22 Aug 2003 17:34:02 GMT
From: James Willmore <jwillmore@cyberia.com>
Subject: Re: Resend: using Getopt::Long with option value having spaces
Message-Id: <20030822133339.4f5ea316.jwillmore@cyberia.com>

On Fri, 22 Aug 2003 20:07:56 +0530
"Sunil" <sunil_franklin@hotmail.com> wrote:
> t1.pl  -frwk=perl  -mode=1 -args=a,b,c  -comments="This is comment
> 1" t2.sql  -frwk=sql -mode=2 -args=x -comments="This is comment 2"
> ----
> I am stuck because I am not able to pass spaces as part of comments.
> Is there a workaround?

Have you tried single quotes on the command-line?
ie
-comments='This is a comment'

HTH

Jim


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

Date: Fri, 22 Aug 2003 20:53:50 GMT
From: "John W. Krahn" <krahnj@acm.org>
Subject: Re: Resend: using Getopt::Long with option value having spaces
Message-Id: <3F4682BC.78AD6CA9@acm.org>

Sunil wrote:
> 
> I have a text file which has some metadata, like
> ----
> t1.pl  -frwk=perl  -mode=1 -args=a,b,c  -comments="This is comment 1"
> t2.sql  -frwk=sql -mode=2 -args=x -comments="This is comment 2"
> ----
> 
> I need to read this file line by line and parse it to get the values of
> frwk, -mode and comments, so that I can create another string depending on
> the different values for this string and pass it on to the corresponding
> perl api I have which will execute it for me.
> 
> I am stuck because I am not able to pass spaces as part of comments. Is
> there a workaround?
> 
> I am doing something like the following.
> ####################################################
>   my $eval_string = '@ARGV = qw (' . "$scriptOptions" . ' )' ;
>   eval $eval_string;

That is the same as:

@ARGV = split ' ', $scriptOptions;

But without the eval().  This appears to work for your data:

$ perl -le'
$x = q/t1.pl  -frwk=perl  -mode=1 -args=a,b,c  -comments="This is
comment 1"/;       
print for $x =~ /(\S.*?\S)(?=\s+-|$)/g;           
'
t1.pl
-frwk=perl
-mode=1
-args=a,b,c
-comments="This is comment 1"



John
-- 
use Perl;
program
fulfillment


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

Date: Fri, 22 Aug 2003 20:14:38 GMT
From: monkeys paw <fm_duendeBASURA@yahoo.com>
Subject: stemming algotithms in perl
Message-Id: <NQu1b.174532$Oz4.45255@rwcrnsc54>

Is there an established code base for stemming in perl.

For instance, if i want to match phrases in a string,
my base phrase would be "race", but i would also want
to automatically match "races", and "racing", "raced", etc...

I thought there may be a module or ?? out there...


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

Date: Fri, 22 Aug 2003 21:07:14 GMT
From: Brian Harnish <bharnish@technologist.com>
Subject: Re: stemming algotithms in perl
Message-Id: <pan.2003.08.22.21.07.37.225985@technologist.com>

-----BEGIN xxx SIGNED MESSAGE-----
Hash: SHA1

On Fri, 22 Aug 2003 20:14:38 +0000, monkeys paw wrote:

> Is there an established code base for stemming in perl.
> 
> For instance, if i want to match phrases in a string,
> my base phrase would be "race", but i would also want
> to automatically match "races", and "racing", "raced", etc...
> 
> I thought there may be a module or ?? out there...

Check http://search.cpan.org they have some (http://search.cpan.org).

 - Brian
-----BEGIN xxx SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/RoYQiK/rA3tCpFYRAu7CAKDqB7vYGypZbUP4B1J7JDpiVMe7bgCeJApp
HViD6ADHRwKDjbQ6De3wrbk=
=ngis
-----END PGP SIGNATURE-----



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

Date: Fri, 22 Aug 2003 22:17:20 +0100
From: "Peter Cooper" <newsfeed@boog.co.uk>
Subject: Re: stemming algotithms in perl
Message-Id: <bi61cj$5hq3j$1@ID-194358.news.uni-berlin.de>

"monkeys paw" <fm_duendeBASURA@yahoo.com> wrote:
> Is there an established code base for stemming in perl.
>
> For instance, if i want to match phrases in a string,
> my base phrase would be "race", but i would also want
> to automatically match "races", and "racing", "raced", etc...
>
> I thought there may be a module or ?? out there...

See:

http://www.ldc.usb.ve/~vdaniel/porter.pm
http://www.tartarus.org/~martin/PorterStemmer/perl.txt

Pete




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

Date: Fri, 22 Aug 2003 15:44:44 GMT
From: f_baggins80@hotmail.com (Helgi Briem)
Subject: Re: Using DBI from within Apache
Message-Id: <3f463a0b.9930859@News.CIS.DFN.DE>

On Fri, 22 Aug 2003 13:19:39 +0100, Graham Wood
<Graham.T.Wood@oracle.com> wrote:

>This is a multi-part message in MIME format.

Tell your newsreader program to stop doing that.
Usenet is a text-only medium.  Turn off that
vcard option.



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

Date: Fri, 22 Aug 2003 22:39:57 +0100
From: Hog Spog <hogspog@hotmail.com>
Subject: Re: Using DBI from within Apache
Message-Id: <3F468DAD.20109@hotmail.com>

Apologies for posting on the wrong board but if you are interested I have solved 
the problem.  I used the SetEnv parameters in the httpd.conf file for Apache 
which sorted me out.  I tried the $ENV stuff but the perl script was failing on 
compilation so it didn't work.  Thanks for your help.

Cheers

Hog Spog

Hog Spog wrote:
> Hello
> 
> Please help.  I have loaded the latest DBI and DBD::Oracle modules. 
> These have compiled and installed successfully and I have a program
> that logs into my database and works fine from the command line.  This
> is as long as I have the environment variables ORACLE_HOME and
> LD_LIBRARY_PATH set and exported.  However I cannot call the program
> as a CGI program from my Apache server.  My CGI directory is properly
> configured in that I can call other CGI programs with no problem.  I
> have stopped the httpd daemon and started it again with those
> environment variables set and exported but to no avail.
> I get the following error in the error_log.
> 
> install_driver(Oracle) failed: Can't load
> '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/Oracle/Oracle.so'
> for module DBD:Oracle: libclntsh.so.8.0: cannot load shared object
> file: No such file or directory at
> /usr/lib/perl5/5.6.0/i386-linus/Dynaloader.pm line 200. at (eval 1)
> line 3
> 
> The shared library libclntsh.so.8.0 exists in the directory
> /home/oracle/product/8.1.6/lib which is what the LD_LIBRARY_PATH is
> set to.  My question is really how do I get the LD_LIBRARY_PATH set
> when my CGI programs run?
> 
> Thanks in advance
> 
> Hog Spog



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

Date: Fri, 22 Aug 2003 08:51:30 -0700
From: "Trent Curry" <tcurrey@no.no.no.i.said.no>
Subject: What ever happened to comp.lang.perl ?
Message-Id: <bi5e6n$btu$1@news.astound.net>

I know this group (comp.lang.perl, not comp.lang.perl.misc) has been dead
for a long time now, albeit my news server has always carried it, but
seemingly locally to the server since it is always empty but I can still
post to it.

I also noticed that groups.google .com carries comp.lang.perl as well as
comp.lang.perl.misc, so there seems to be the existence of this group still,
yes?

From what I heard a while back, comp.lang.perl simply changed it's name to
comp.lang.perl.misc.

What was the reason for this? Does anyone know?

I have newer understood why the name would be changed instead of just having
two groups. It probably would of lessened the amount of trouble
comp.lang.perl.misc has had in the past years, many of which seemed to lead
to the group name which was very misleading (as most groups with "misc" in
the name suggestion "miscellaneous", yet many regulars would always point
out that it wasn't, though I never actually saw an explanation of what
"misc" was suppose to stand for in this case.)

So I ask, what is the story here? The original control messages only say
that this group has taken over the original. But WHY was this name change
even done in the first place?




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

Date: Fri, 22 Aug 2003 15:20:17 -0400
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: What ever happened to comp.lang.perl ?
Message-Id: <12u1b.3689$PJ2.310237@news20.bellglobal.com>


"Trent Curry" <tcurrey@no.no.no.i.said.no> wrote in message
news:bi5e6n$btu$1@news.astound.net...
>
> From what I heard a while back, comp.lang.perl simply changed it's name to
> comp.lang.perl.misc.
>
> What was the reason for this? Does anyone know?
>

I believe it was to reduce traffic. Someone will undoubtedly correct me if
I'm wrong, but it wasn't just a change in name, but the splitting of clp
into .misc and .moderated.

Matt




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

Date: 22 Aug 2003 19:41:08 GMT
From: Rafael Garcia-Suarez <rgarciasuarez@free.fr>
Subject: Re: What ever happened to comp.lang.perl ?
Message-Id: <slrnbkcsrc.gn1.rgarciasuarez@dat.local>

Matt Garrish wrote in comp.lang.perl.misc :
> I believe it was to reduce traffic. Someone will undoubtedly correct me if
> I'm wrong, but it wasn't just a change in name, but the splitting of clp
> into .misc and .moderated.

No, .moderated appeared after the other comp.lang.perl.* groups (to
reduce the signal/noise ratio compared to what happens here:)

-- 
Unsatisfied is not *NIX


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

Date: Fri, 22 Aug 2003 21:17:50 GMT
From: jtbellq2f@presby.edu (Jon Bell)
Subject: Re: What ever happened to comp.lang.perl ?
Message-Id: <HK1Htq.A1L@presby.edu>

In article <bi5e6n$btu$1@news.astound.net>,
Trent Curry <tcurrey@no.no.no.i.said.no> wrote:
>
>From what I heard a while back, comp.lang.perl simply changed it's name to
>comp.lang.perl.misc.
>
>What was the reason for this? Does anyone know?

For a while, the moderator of news.announce.newgroups strongly preferred 
that when a group split, the original group not be left behind in the same 
location in the namespace tree.  That is, when splitting comp.foo, instead 
of ending up with something like

    comp.foo
    comp.foo.a
    comp.foo.b

he preferred

   comp.foo.a
   comp.foo.b
   comp.foo.misc

This was supposed to make it clearer that the a and b stuff doesn't belong
in the (renamed) original group any more.  Also, it makes certain
technical aspects of configuring a news server a little bit easier.  On
the other hand, it does confuse some people because some servers never get
around to removing the original group (as with comp.lang.perl on your
server), so some people opposed this policy rather strongly.

There were many heated debates in news.groups about this.  Finally the
news.announce.newgroups moderator gave up and stopped insisting on
"miscification", so it's not much of an issue any more.

-- 
Jon Bell <jtbellap8@presby.edu>                     Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA


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

Date: Fri, 22 Aug 2003 17:49:34 -0400
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: What ever happened to comp.lang.perl ?
Message-Id: <%dw1b.534$W01.265731@news20.bellglobal.com>


"Rafael Garcia-Suarez" <rgarciasuarez@free.fr> wrote in message
news:slrnbkcsrc.gn1.rgarciasuarez@dat.local...
>
> No, .moderated appeared after the other comp.lang.perl.* groups (to
> reduce the signal/noise ratio compared to what happens here:)
>

I knew I had something not quite right...

I'm not interested in eliciting a hudson-esque reponse, but the inference of
 .misc does seem at odds with the willingness of some people to discuss
anything beyond specific code examples (and this is not meant as a critique
of the aim of the group, but simply the appropriateness of the identifier,
as the OP has suggested).

It isn't much of a stretch for me to understand why new programmers trying
to get their scripts to run in Apache (simply as an example that occurs
quite frequently), would think it perfectly reasonable to post to
comp.lang.perl.misc to ask other Perl programmers what the problem might be
(without expecting to be flamed). One would assume that Perl programmers
would probably be familiar with setting up the environment in which to run
their scripts, and be willing to help.

On the other hand, clpm is more of a code-oriented discussion group. If you
don't have a code example, or a specific code question, you're not likely to
get a warm reception. Although I make no bones about how I feel about the
way some people asking general questions get treated, I can also understand
why others feel loathe to help them.

My question is: has anyone considered a c.l.learn.perl group? (Or anything
similar?) I'm aware that learn.perl.org has mailing lists, but I suspect
that much of the unwanted posting in this group would be more quickly
diverted were posters presented the option of posting to .learn.perl or
 .perl.misc when looking for a group.

And if you don't have anything constructive to add, please continue on to
some other thread... : )

Matt




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

Date: Fri, 22 Aug 2003 19:31:21 +0200
From: Kurt Klinner <kurt-simone@t-online.de>
Subject: Xml Parsing Problem
Message-Id: <bi5k2l$qej$04$1@news.t-online.com>

Thanks a lot for the information

Regards

Kurt


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

Date: Sat, 19 Jul 2003 01:59:56 GMT
From: Bob Walton <bwalton@rochester.rr.com>
Subject: Re: 
Message-Id: <3F18A600.3040306@rochester.rr.com>

Ron wrote:

> Tried this code get a server 500 error.
> 
> Anyone know what's wrong with it?
> 
> if $DayName eq "Select a Day" or $RouteName eq "Select A Route") {

(---^


>     dienice("Please use the back button on your browser to fill out the Day
> & Route fields.");
> }
 ...
> Ron

 ...
-- 
Bob Walton



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

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.  

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 V10 Issue 5411
***************************************


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