[27884] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 9248 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue May 30 18:06:05 2006

Date: Tue, 30 May 2006 15:05:02 -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           Tue, 30 May 2006     Volume: 10 Number: 9248

Today's topics:
        Changing the inherited STDOUT <yosi.kal@gmail.com>
    Re: John Bokma harassment <mumia.w.18.spam+nospam.usenet@earthlink.net>
    Re: MS SQL geek wants to jump ship, plz help on first P <bugbear@trim_papermule.co.uk_trim>
    Re: Negated Perl Regexp, Howabout qr in Modules? <vtatila@mail.student.oulu.fi>
        new CPAN modules on Tue May 30 2006 (Randal Schwartz)
        Question about Regular expression <cylix2000@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: 30 May 2006 04:24:06 -0700
From: "yosi.kal@gmail.com" <yosi.kal@gmail.com>
Subject: Changing the inherited STDOUT
Message-Id: <1148988246.359691.319240@j73g2000cwa.googlegroups.com>

Hi,

My program runs as a child process of a process that its STDOUT was
redirected to a file. (open STDOUT, ">$logfile").
Obviously, the child process inherits the STDOUT redirection. My
question is: if I need to write something to the real output (for
example, the terminal in unix), how can I claim back the original
STDOUT?

Thanks, Yosi



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

Date: Tue, 30 May 2006 10:22:41 GMT
From: "Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net>
Subject: Re: John Bokma harassment
Message-Id: <R1Veg.25$gx3.11@newsread3.news.pas.earthlink.net>

David Squire wrote:
> Max M wrote:
>> John Bokma wrote:
>>> ilitzroth@gmail.com wrote:
>>
>>> Your first question should be: Is it alright that Xah harasses 5 
>>> newsgroups? Or maybe work on your spelling, harass is with one r, but 
>>> maybe you didn't read the subject, which wouldn't amaze me, since you 
>>> sound like you should be spending time on MySpace OMG!.
>>
>>
>> I assume that the single l in alright is the courteous misspelling 
>> that should allways be in a posting, when correcting other peoples 
>> speling?
> 
> Nope. Oxford English Dictionary has:
> 
>     alright
> 
>     a frequent spelling of all right.
> 
> And Merriam-Webster has:
> 
> alright
> Pronunciation: (")ol-'rIt, 'ol-"
> Function: adverb or adjective
> : ALL RIGHT
> usage The one-word spelling alright appeared some 75 years after all 
> right itself had reappeared from a 400-year-long absence. Since the 
> early 20th century some critics have insisted alright is wrong, but it 
> has its defenders and its users. It is less frequent than all right but 
> remains in common use especially in journalistic and business 
> publications. It is quite common in fictional dialogue, and is used 
> occasionally in other writing <the first two years of medical school 
> were alright -- Gertrude Stein>.    
> 
> DS

American Heritage Dictionary:
Usage Note: [...] one who uses alright, especially in formal writing, 
runs the risk that readers may view it as an error or as the willing 
breaking of convention.

That's sounds kinda like what Xah does, and that's why I flag it as 
hypocrisy.


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

Date: Tue, 30 May 2006 11:58:52 +0100
From: bugbear <bugbear@trim_papermule.co.uk_trim>
Subject: Re: MS SQL geek wants to jump ship, plz help on first Perl script
Message-Id: <447c256d$0$18215$ed2619ec@ptn-nntp-reader01.plus.net>

A. Sinan Unur wrote:
>>
>>For example, when re-opening a file for read that
>>was written in another part of the script.
> 
> 
> I am sure this means something, but I am not sure what it means.

If stage 1 of a script has written a temp file
stored some data in
it, and closed it, and the stage 2 of the script
needs to open and read this file,
failure is "unlikely" , and I feel
little compunction in the error reporting
being a little vicious.

   BugBear


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

Date: Tue, 30 May 2006 13:49:03 +0300
From: "Veli-Pekka Tätilä" <vtatila@mail.student.oulu.fi>
Subject: Re: Negated Perl Regexp, Howabout qr in Modules?
Message-Id: <e5h7vf$jtv$1@news.oulu.fi>

Ronny wrote:
>    $v !~ /RE/ and print "string does not contain pattern\n"
> Is there an easy way to write this in a positive way, i.e using $v =~
> /.../ ?
I have a related question here. One case which the so far posted solutions 
don't address is the use of compiled regular expressions with the qr 
operator. Many modules can take qr regular expressions for filtering or 
homing in some particular datum. However, in some cases I'd like to use a 
negated test for matching. I'm not really willing to extend the original 
module code if I can avoid it. So, can one easily negate a qr-regexp when 
the module code supposedly uses =~ for testing?

PS: The module in this case is:
Win32::IE::Mechanize

-- 
With kind regards Veli-Pekka Tätilä (vtatila@mail.student.oulu.fi)
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/ 




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

Date: Tue, 30 May 2006 04:42:18 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Tue May 30 2006
Message-Id: <J02AEI.BCG@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.

WebService-JugemKey-Auth-0.01
http://search.cpan.org/~mizzy/WebService-JugemKey-Auth-0.01/
Perl interface to the JugemKey Authentication API
----
Class-Meta-Express-0.01
http://search.cpan.org/~dwheeler/Class-Meta-Express-0.01/
Concise, expressive creation of Class::Meta classes
----
Class-Meta-0.53
http://search.cpan.org/~dwheeler/Class-Meta-0.53/
Class automation, introspection, and data validation
----
Search-Namazu-0.94
http://search.cpan.org/~knok/Search-Namazu-0.94/
Namazu library module for perl
----
Text-Same-0.01
http://search.cpan.org/~kim/Text-Same-0.01/
Look for similarities between files or arrays
----
hwd-0.21_01
http://search.cpan.org/~petdance/hwd-0.21_01/
The How We Doin'? project tracking tool
----
WebList-CY
http://search.cpan.org/~kostya/WebList-CY/
Yandex Thematic Index of Citing (TIC) for domain
----
GSSAPI-0.22
http://search.cpan.org/~agrolms/GSSAPI-0.22/
Perl extension providing access to the GSSAPIv2 library
----
Proc-DaemonLite-0.00_1
http://search.cpan.org/~nicolaw/Proc-DaemonLite-0.00_1/
Simple server daemonisation module
----
Syntax-Highlight-Engine-Kate-0.01
http://search.cpan.org/~hanje/Syntax-Highlight-Engine-Kate-0.01/
a port to Perl of the syntax highlight engine of the Kate texteditor.
----
NNML-1.14
http://search.cpan.org/~ulpfr/NNML-1.14/
----
DateTime-Format-Builder-0.7807
http://search.cpan.org/~drolsky/DateTime-Format-Builder-0.7807/
Create DateTime parser classes and objects.
----
Template-XML-2.16
http://search.cpan.org/~abw/Template-XML-2.16/
XML plugins for the Template Toolkit
----
Devel-PPPort-3.08_04
http://search.cpan.org/~mhx/Devel-PPPort-3.08_04/
Perl/Pollution/Portability
----
Term-Size-Perl-0.01
http://search.cpan.org/~ferreira/Term-Size-Perl-0.01/
Perl extension for retrieving terminal size (Perl version)
----
WWW-Mixi-0.47
http://search.cpan.org/~tsukamoto/WWW-Mixi-0.47/
Perl extension for scraping the MIXI social networking service.
----
Params-Validate-0.84
http://search.cpan.org/~drolsky/Params-Validate-0.84/
Validate method/function parameters
----
CGI-Cookie-Splitter-0.01
http://search.cpan.org/~kostya/CGI-Cookie-Splitter-0.01/
Split big cookies into smaller ones.
----
Acme-MetaSyntactic-0.76
http://search.cpan.org/~kostya/Acme-MetaSyntactic-0.76/
Themed metasyntactic variables names
----
Colloquy-Data-1.15
http://search.cpan.org/~nicolaw/Colloquy-Data-1.15/
Read Colloquy 1.3 and 1.4 data files
----
SOAP-XML-Client-1.9
http://search.cpan.org/~llap/SOAP-XML-Client-1.9/
Simple frame work for talking with web services
----
HTML-Declare-2.1
http://search.cpan.org/~sri/HTML-Declare-2.1/
For When Template Systems Are Too Huge And Heredocs Too Messy
----
Colloquy-Bot-Simple-1.08_1
http://search.cpan.org/~nicolaw/Colloquy-Bot-Simple-1.08_1/
Simple robot interface for Colloquy
----
Catalyst-Controller-BindLex-0.03
http://search.cpan.org/~nuffin/Catalyst-Controller-BindLex-0.03/
Stash your lexical goodness.
----
HTML-Declare-2.0
http://search.cpan.org/~sri/HTML-Declare-2.0/
For When Template Systems Are Too Huge And Heredocs Too Messy
----
Colloquy-Bot-Simple-1.08
http://search.cpan.org/~nicolaw/Colloquy-Bot-Simple-1.08/
Simple robot interface for Colloquy
----
B-Size-0.08
http://search.cpan.org/~pgollucci/B-Size-0.08/
Measure size of Perl OPs and SVs
----
HTTP-Cookies-Guess-0.01
http://search.cpan.org/~yappo/HTTP-Cookies-Guess-0.01/
Guesses UserAgent from file name.
----
B-Size-0.07_1
http://search.cpan.org/~pgollucci/B-Size-0.07_1/
Measure size of Perl OPs and SVs
----
Fuse-0.07_4
http://search.cpan.org/~dpavlin/Fuse-0.07_4/
write filesystems in Perl using FUSE
----
Apache-DBI-1.00_01
http://search.cpan.org/~pgollucci/Apache-DBI-1.00_01/
Initiate a persistent database connection
----
Class-DBI-Pg-0.08_02
http://search.cpan.org/~dmaki/Class-DBI-Pg-0.08_02/
Class::DBI extension for Postgres
----
XML-RSS-FromHTML-0.01
http://search.cpan.org/~bashi/XML-RSS-FromHTML-0.01/
simple framework for making RSS out of HTML
----
FEAR-API-0.487.2
http://search.cpan.org/~xern/FEAR-API-0.487.2/
Web Scraping Zen
----
EasyDBAccess-3.0.0.03
http://search.cpan.org/~foolfish/EasyDBAccess-3.0.0.03/
Perl Database Access Interface


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.

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/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


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

Date: 30 May 2006 04:19:26 -0700
From: "Jay" <cylix2000@gmail.com>
Subject: Question about Regular expression
Message-Id: <1148987966.868040.299160@u72g2000cwu.googlegroups.com>

I am going to write a function that the search engine done.
in search engine, we may using double quotation to specify a pharse
like "I love you",
How can I using regular expression to sperate each pharse?

test case:
"I love" all "of you"

I would like it return:
"I love", all, "of you"

Thank you!



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

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


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