Re: filter script read STDIN from named pipe >file

2010-03-22 Thread Uri Guttman
> "KW" == Kenneth Wolcott writes: KW> On Mon, Mar 22, 2010 at 15:50, Uri Guttman wrote: >> "KW" == Kenneth Wolcott writes: KW>  >> select LOGNAME; KW>  >> $|++; KW>  >> select STDOUT; KW>  KW>   Which is what the Perl Cookbook suggests as well. you sai

Re: filter script read STDIN from named pipe >file

2010-03-22 Thread Kenneth Wolcott
Hi Uri; On Mon, Mar 22, 2010 at 15:50, Uri Guttman wrote: > > "KW" == Kenneth Wolcott writes: > > KW> Hi Harry; > KW> On Mon, Mar 22, 2010 at 12:25, Harry Putnam > wrote: > > >> Harry Putnam writes:But even then I still got > what I > >> needed... or until someone tells me > >> its

Re: filter script read STDIN from named pipe >file

2010-03-22 Thread Uri Guttman
> "KW" == Kenneth Wolcott writes: KW> Hi Harry; KW> On Mon, Mar 22, 2010 at 12:25, Harry Putnam wrote: >> Harry Putnam writes:But even then I still got what I >> needed... or until someone tells me >> its better to in this case not to use IO::Handle but stick with Jim >> Gs' su

Re: filter script read STDIN from named pipe >file

2010-03-22 Thread Kenneth Wolcott
Hi Harry; On Mon, Mar 22, 2010 at 12:25, Harry Putnam wrote: > Harry Putnam writes:But even then I still got what I > needed... or until someone tells me > its better to in this case not to use IO::Handle but stick with Jim > Gs' suggestion: > > select LOGNAME; > $|++; > select STDOUT; >

Re: filter script read STDIN from named pipe >file

2010-03-22 Thread Harry Putnam
Harry Putnam writes: > Thanks, that works fine. > > The page offered by perldoc -q flush mentions a write up about > buffering ( http://perl.plover.com/FAQs/Buffering.html ), that I also > went through. > > I'm sorry to say that it was mostly like trying to read ancient > sanskrit, since its writ

Re: filter script read STDIN from named pipe >file

2010-03-22 Thread Harry Putnam
Jim Gibson writes: linux expert wrote: >>> Try adding the following line after your 'use warnings' line: >>> $|++; >>> >>> That will disable output buffering on the currently-selected >>> filehandle (STDOUT be default). Harry replied: >>Doesn't appear to make any difference whatever. Jim G.

Re: filter script read STDIN from named pipe >file

2010-03-21 Thread Jim Gibson
At 7:40 PM -0500 3/21/10, Harry Putnam wrote: Linux Expert writes: Again... appears to work. However the log file takes quite a long time to starting showing any action, and then stay well behind the console output. Try adding the following line after your 'use warnings' line: $|++;

Re: filter script read STDIN from named pipe >file

2010-03-21 Thread Harry Putnam
Linux Expert writes: >> Again... appears to work. >> >> However the log file takes quite a long time to starting showing any >> action, and then stay well behind the console output. >> > > Try adding the following line after your 'use warnings' line: > $|++; > > That will disable output buffering

Re: filter script read STDIN from named pipe >file

2010-03-21 Thread Linux Expert
> Again... appears to work. > > However the log file takes quite a long time to starting showing any > action, and then stay well behind the console output. > Try adding the following line after your 'use warnings' line: $|++; That will disable output buffering on the currently-selected filehandl

Re: filter email

2006-05-05 Thread James Turnbull
Khairul Azmi wrote: > Hi, > I am a newbies and wondering if anyone could guide me how to do this > task. > It is fairly easy I guess for the expert. > a. Develop a program that would filter email file (in text) that > matching > with a keyword. The keyword should only exists at the body part or th

Re: Filter Quotes

2006-03-05 Thread David Moreno Garza
On 18:30 Thu 02 Mar 2006, maillists wrote: > $Values->{text_field} =~ s/"/"/; Try adding a `g' on the end of the regexp: $Values->{text_field} =~ s/"/"/g; Cheers, -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ <[EMAIL PROTECTED]> | GPG: C

Re: Filter Quotes

2006-03-03 Thread Beau E. Cox
On Thursday 02 March 2006 13:30, maillists wrote: > Hi, > > I'm trying to filter quotes out of a web form and replace them with > " > > $Values->{text_field} =~ s/"/"/; > return; The above would replace the first " with " on the first line of the field; if your field contains newlines, and

Re: Filter Quotes

2006-03-02 Thread Chas Owens
On 3/2/06, maillists <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to filter quotes out of a web form and replace them with > " > > $Values->{text_field} =~ s/"/"/; > return; > > However, This does not seem to work. Is this right? > Also, I would like to replace the single quote ' > > Tha

RE: filter

2005-11-13 Thread Charles K. Clarkson
Tom Allison wrote: : I was at the YAPC::NA this year and saw someone using something : called : : FILTER{ : : } : : Or something like that in their code. I'm taking this from memory, : but I was not familiar with the statement, 'FILTER'. : : Where does this come fro

Re: filter

2005-11-13 Thread Michael Glaesemann
On Nov 14, 2005, at 13:04 , Tom Allison wrote: I was at the YAPC::NA this year and saw someone using something called FILTER{ } Or something like that in their code. I'm taking this from memory, but I was not familiar with the statement, 'FILTER'. I wasn't there and I'm no perl expert b

RE: Filter Regular Expressions

2005-02-07 Thread Charles K. Clarkson
Gomez, Gonzalo <[EMAIL PROTECTED]> wrote: : How could i get or use this XML parser module ? There are many XML parser modules. They are kept on a network named CPAN. Follow this link to the CPAN FAQ. http://www.cpan.org/misc/cpan-faq.html#Where_find_Perl_modules : Thanks for your answer !

RE: Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
... Gonzalo Gómez -Mensaje original- De: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 07 de Febrero de 2005 11:52 a.m. Para: beginners@perl.org Asunto: RE: Filter Regular Expressions Gomez, Gonzalo <[EMAIL PROTECTED]> wrote: : Hi, I want to filter text using r

RE: Filter Regular Expressions

2005-02-07 Thread Charles K. Clarkson
Gomez, Gonzalo <[EMAIL PROTECTED]> wrote: : Hi, I want to filter text using regular expressions, but i : don't know how to find in a file a string like this , : or , or , Etc. I try to use the little : script bellow with a count for the word but this scrit : doesn't work if i put symbols like /

RE: Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
--- De: Ezra Taylor [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 07 de Febrero de 2005 11:19 a.m. Para: Gomez, Gonzalo CC: beginners@perl.org Asunto: Re: Filter Regular Expressions Gomez, Gonzalo wrote: >Hi, I want to filter text using regular expressions, but i don't know how to >find

Re: Filter Regular Expressions

2005-02-07 Thread Ezra Taylor
Gomez, Gonzalo wrote: Hi, I want to filter text using regular expressions, but i don't know how to find in a file a string like this , or , or , Etc. I try to use the little script bellow with a count for the word but this scrit doesn't work if i put symbols like / , \ , > , < (Reserved Symbo

RE: FILTER

2002-11-19 Thread Javeed SAR
- From: David Samuelsson (PAC) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 3:05 PM To: Javeed SAR; [EMAIL PROTECTED] Subject: RE: FILTER I wouldnt use perl for this. In outlook you have an rules wizard that can move mails when they arrive to a diffrent folder, but yes its sure is

RE: FILTER

2002-11-19 Thread David Samuelsson (PAC)
I wouldnt use perl for this. In outlook you have an rules wizard that can move mails when they arrive to a diffrent folder, but yes its sure is "doable" in perl, but why invent the wheel again? //Dave -Original Message- From: Javeed SAR [mailto:[EMAIL PROTECTED]] Sent: den 19 november 2

Re: FILTER

2002-11-19 Thread Gavin Laking
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 19 Nov 2002 09:57:58 +0530 Javeed SAR <[EMAIL PROTECTED]> wrote: > Can i filter incoming e-mails. > I am using exchange server (outlook) on win2k. You can sure filter emails but I'm not sure how to with Exchange Server and Win2k. If you'd sa

RE: filter list of files from directory into array

2002-06-20 Thread David . Wagner
sday, June 20, 2002 15:55 To: [EMAIL PROTECTED] Subject: RE: filter list of files from directory into array When I tried: my @filelist = grep { -f "$dir/$_" && m/^\d{5,6}$/} readdir DIR; I got this message: Global symbol "$dir" requires explicit package n

RE: filter list of files from directory into array

2002-06-20 Thread Auernheimer, Rebecca (CORP, Consultant)
s. I was going to ask about $dir anyway, because I don't know where it came from. -Original Message- From: Felix Geerinckx [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: RE: filter list of files from directory into array on Thu, 20 Ju

Re: filter list of files from directory into array

2002-06-20 Thread drieux
On Thursday, June 20, 2002, at 03:03 , Auernheimer, Rebecca (CORP, Consultant) wrote: [..] > my @filelist = grep { $_ ne -d && m/^\d\d\d(\d|\d\d)\d$/ }, readdir DIR; > another close but no cigar you might try my @filelist = grep { /^\d{5,6}$/ && -f "$baseDir/$_" } readdir DIR ; The basic illu

RE: filter list of files from directory into array

2002-06-20 Thread Felix Geerinckx
on Thu, 20 Jun 2002 22:29:45 GMT, David Wagner wrote: > But unless you have done a chdir it will only pass the file name or > directory name and not do what you want. You are absolutely right. The line should read: my @filelist = grep { -f "$dir/$_" && m/^\d{5,6}$/} readdir DIR; whe

RE: filter list of files from directory into array

2002-06-20 Thread David . Wagner
But unless you have done a chdir it will only pass the file name or directory name and not do what you want. Wags ;) -Original Message- From: Felix Geerinckx [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 15:31 To: [EMAIL PROTECTED] Subject: Re: filter list of files

Re: filter list of files from directory into array

2002-06-20 Thread Felix Geerinckx
on Thu, 20 Jun 2002 22:03:04 GMT, wrote: > So far, I am just trying to read a directory > of files into an array, but only those files that are named with 5 or > 6 numbers and no extension, like 12345 or 654321. I've got that part > down except that I don't know how to keep another directory ou

RE: filter list of files from directory into array

2002-06-20 Thread David . Wagner
Could add the: grep m/^\d\d\d(\d|\d\d)\d$/ && ! -e "c:\\prod\\rej" . $_ , readdir DIR; You need to have the directory location because the readdir returns only the file or directory name read. Wags ;) ps Did test and put out files only. -Original Message- From: Auernhei