Re: how to read a picture

2017-03-12 Thread Shlomi Fish
Hi community tech, On Sun, 12 Mar 2017 13:34:21 +0800 community tech wrote: > Hi, > > Giving a pic which is 5x5 pixels, I want to read the grayscale value of > each pixel. > which module should I use? thanks. There's https://metacpan.org/release/GD and there are also the Perl bindings to https

how to read a picture

2017-03-11 Thread community tech
Hi, Giving a pic which is 5x5 pixels, I want to read the grayscale value of each pixel. which module should I use? thanks.

Re: How to read RegEx match in to a variable?

2009-06-12 Thread John W. Krahn
Sam Munzani wrote: Team, I am a totally newbee to perl scripting. I have learned enough to understand somebody's simple scripts and written some basic ones. Below is what I am trying to achieve. I am writing a wrapper script to trigger when a syslog message arrives to syslog-ng. It fires up

How to read RegEx match in to a variable?

2009-06-12 Thread Sam Munzani
Team, I am a totally newbee to perl scripting. I have learned enough to understand somebody's simple scripts and written some basic ones. Below is what I am trying to achieve. I am writing a wrapper script to trigger when a syslog message arrives to syslog-ng. It fires up my parser.pl script

Re: How to read email from Inbox

2008-12-23 Thread Chas. Owens
On Tue, Dec 23, 2008 at 07:47, sanket vaidya wrote: snip >>I think it's possible. >>Search "Gmail" on CPAN and you will get something. > > Thanks Jeff, I have searched CPAN & got a list of modules related to Gmail. > I will try that. snip Don't forget that Gmail provides POP3 and IMAP support, so

RE: How to read email from Inbox

2008-12-23 Thread sanket vaidya
-Original Message- From: yonghua.p...@gmail.com [mailto:yonghua.p...@gmail.com] On Behalf Of Jeff Peng Sent: Tuesday, December 23, 2008 5:30 PM To: sanket vaidya Cc: beginners@perl.org Subject: Re: How to read email from Inbox 2008/12/23 sanket vaidya : > > > Hi all, > >

Re: How to read email from Inbox

2008-12-23 Thread Jeff Peng
2008/12/23 sanket vaidya : > > > Hi all, > > > > How can we read mail from inbox without using mail client like outlook? > Using perl. i.e. Is it possible to read Inbox of your gmail account using > perl? I think it's possible. Search "Gmail" on CPAN and you will get something. -- Jeff Peng ht

Re: How to read email from Inbox

2008-12-23 Thread Gary Stainburn
On Tuesday 23 December 2008 10:46:46 sanket vaidya wrote: > Hi all, > > How can we read mail from inbox without using mail client like outlook? > Using perl. i.e. Is it possible to read Inbox of your gmail account using > perl? > > Thanks & Regards, > > Sanket Vaidya > This is not something I've d

How to read email from Inbox

2008-12-23 Thread sanket vaidya
Hi all, How can we read mail from inbox without using mail client like outlook? Using perl. i.e. Is it possible to read Inbox of your gmail account using perl? Thanks & Regards, Sanket Vaidya http://www.patni.com World-Wide Partnerships. World-Class Solutions. _

Re: how to read file content into an array?

2008-11-24 Thread Chas. Owens
On Mon, Nov 24, 2008 at 07:24, loody <[EMAIL PROTECTED]> wrote: snip > My question are: > Q1: > what is the differences of using > "use bytes; use open IN => ":bytes";" > and "binmode "? snip The bytes pragma changes how string functions work (char vs byte, some chars take up more than one byte).

Re: how to read file content into an array?

2008-11-24 Thread loody
> You may also want to look into the pack** and unpack*** functions if you are > going to be messing around with binary files. > Dear all: I excerpt from web, http://coding.derkeiler.com/Archive/Perl/perl.beginners/2004-05/0150.html, and add them in my source code which looks like below: #!/usr/bi

Re: how to read file content into an array?

2008-11-23 Thread Chas. Owens
On Sun, Nov 23, 2008 at 08:29, loody <[EMAIL PROTECTED]> wrote: > 2008/11/23 Chas. Owens <[EMAIL PROTECTED]>: >> >> >> On Nov 23, 2008, at 2:52, loody <[EMAIL PROTECTED]> wrote: >> >>> Dear all: >>> The prototype of read is >>> read FILEHANDLE,SCALAR,LENGTH >>> ex: >>> read PATTERN, $line, 1920; >>

Re: how to read file content into an array?

2008-11-23 Thread John W. Krahn
Mr. Shawn H. Corey wrote: On Sun, 2008-11-23 at 05:47 -0800, John W. Krahn wrote: Mr. Shawn H. Corey wrote: On Sun, 2008-11-23 at 05:34 -0800, John W. Krahn wrote: You shouldn't "do something with $line" if $bytes_read is undefined: while ( my $bytes_read = read PATTERN, $line, 1920 ) {

Re: how to read file content into an array?

2008-11-23 Thread Mr. Shawn H. Corey
On Sun, 2008-11-23 at 05:47 -0800, John W. Krahn wrote: > Mr. Shawn H. Corey wrote: > > On Sun, 2008-11-23 at 05:34 -0800, John W. Krahn wrote: > >> You shouldn't "do something with $line" if $bytes_read is undefined: > >> > >> while ( my $bytes_read = read PATTERN, $line, 1920 ) { > >> unless

Re: how to read file content into an array?

2008-11-23 Thread John W. Krahn
Mr. Shawn H. Corey wrote: On Sun, 2008-11-23 at 05:34 -0800, John W. Krahn wrote: You shouldn't "do something with $line" if $bytes_read is undefined: while ( my $bytes_read = read PATTERN, $line, 1920 ) { unless ( defined $bytes_read ) { die "error reading $filename: $!";

Re: how to read file content into an array?

2008-11-23 Thread John W. Krahn
loody wrote: 2008/11/23 Chas. Owens <[EMAIL PROTECTED]>: On Nov 23, 2008, at 2:52, loody <[EMAIL PROTECTED]> wrote: The prototype of read is read FILEHANDLE,SCALAR,LENGTH ex: read PATTERN, $line, 1920; that means the $line will content 1920 bytes. if I want to modify the byte offset 720 of $

Re: how to read file content into an array?

2008-11-23 Thread Mr. Shawn H. Corey
On Sun, 2008-11-23 at 05:34 -0800, John W. Krahn wrote: > You shouldn't "do something with $line" if $bytes_read is undefined: > > while ( my $bytes_read = read PATTERN, $line, 1920 ) { > unless ( defined $bytes_read ) { > die "error reading $filename: $!"; > } > # do s

Re: how to read file content into an array?

2008-11-23 Thread John W. Krahn
Mr. Shawn H. Corey wrote: On Sun, 2008-11-23 at 15:52 +0800, loody wrote: The prototype of read is read FILEHANDLE,SCALAR,LENGTH ex: read PATTERN, $line, 1920; that means the $line will content 1920 bytes. It means it will attempt to read 1920 bytes. The actual number of bytes read is retur

Re: how to read file content into an array?

2008-11-23 Thread loody
2008/11/23 Chas. Owens <[EMAIL PROTECTED]>: > > > On Nov 23, 2008, at 2:52, loody <[EMAIL PROTECTED]> wrote: > >> Dear all: >> The prototype of read is >> read FILEHANDLE,SCALAR,LENGTH >> ex: >> read PATTERN, $line, 1920; >> >> that means the $line will content 1920 bytes. >> if I want to modify th

Re: how to read file content into an array?

2008-11-23 Thread Mr. Shawn H. Corey
On Sun, 2008-11-23 at 15:52 +0800, loody wrote: > Dear all: > The prototype of read is > read FILEHANDLE,SCALAR,LENGTH > ex: > read PATTERN, $line, 1920; > > that means the $line will content 1920 bytes. It means it will attempt to read 1920 bytes. The actual number of bytes read is returned. Y

Re: how to read file content into an array?

2008-11-23 Thread Chas. Owens
On Nov 23, 2008, at 2:52, loody <[EMAIL PROTECTED]> wrote: Dear all: The prototype of read is read FILEHANDLE,SCALAR,LENGTH ex: read PATTERN, $line, 1920; that means the $line will content 1920 bytes. if I want to modify the byte offset 720 of $line, it seems impossible, But happily it isn'

how to read file content into an array?

2008-11-22 Thread loody
Dear all: The prototype of read is read FILEHANDLE,SCALAR,LENGTH ex: read PATTERN, $line, 1920; that means the $line will content 1920 bytes. if I want to modify the byte offset 720 of $line, it seems impossible, since $line is a scalar not an array. I know I can read a byte to each array element

Re: how to read the formatted data from the file?

2008-07-18 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: On Jul 14, 10:57 am, [EMAIL PROTECTED] (Amit Saxena) wrote: open (PTR1, " what dose $! mean perldoc perlvar -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: how to read the formatted data from the file?

2008-07-18 Thread MedranoEnrique
t" or die $!; > >   foreach .. <..> { > >      printf File "%5d %11.2f\n", $data1,data2; > >   } > >   close File; > > > and my question is, how to read these data follow the same format as "%5d > > %11.2f' from this file again? &

Re: Re: how to read the formatted data from the file?

2008-07-15 Thread bin . lv
utomation, >> Chinese Academy of Sciences. >> -- >> *发件人:* Amit Saxena >> *发送时间:* 2008-07-14 22:57:03 >> *收件人:* vikingy >> *抄送:* beginners >> *主题:* Re: how to read the formatted data from the file? >> #! /usr/bin/perl >

Re: how to read the formatted data from the file?

2008-07-14 Thread Amit Saxena
oops I was thinking along "C" lines on that one ! Please remove sscanf part from the loop. Regards Amit Saxena On Tue, Jul 15, 2008 at 2:29 AM, Rob Dixon <[EMAIL PROTECTED]> wrote: > > Brad Baxter wrote: > > Amit Saxena wrote: > >> #! /usr/bin/perl > >> > >> use warnings; > >> use strict; > >>

Re: how to read the formatted data from the file?

2008-07-14 Thread Rob Dixon
Brad Baxter wrote: > Amit Saxena wrote: >> #! /usr/bin/perl >> >> use warnings; >> use strict; >> >> open (PTR1, "> $!\n\n"; >> >> while (chomp ($str = )) >> { >> sscanf($str, "%5d %11.2f", $data1, $data2); >> >> # do whatever processing. >> } >> >> close (PTR1); >> >> Regards, >>

Re: how to read the formatted data from the file?

2008-07-14 Thread Brad Baxter
Amit Saxena wrote: #! /usr/bin/perl use warnings; use strict; open (PTR1, ")) { sscanf($str, "%5d %11.2f", $data1, $data2); # do whatever processing. } close (PTR1); Regards, Amit Saxena sscanf()? -- Brad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: how to read the formatted data from the file?

2008-07-14 Thread Rob Dixon
Rob Dixon wrote: > > Amit Saxena wrote: >> >> while (chomp ($str = )) > > That will exit the loop if an empty line is encountered before the end of the > file, and will throw a warning at the end of the file because of chomp having > an > uninitialized value My apologies; chomp returns the numb

Re: how to read the formatted data from the file?

2008-07-14 Thread Rob Dixon
2f\n", $data1,data2; >> } >> close File; >> >> and my question is, how to read these data follow the same format as "%5d >> %11.2f' from this file again? >>thanks in advance! > > #! /usr/bin/perl > > use warnings; > use stri

Re: how to read the formatted data from the file?

2008-07-14 Thread Amit Saxena
> There is a file created likes this: > > open File ">file.txt" or die $!; > foreach .. <..> { > printf File "%5d %11.2f\n", $data1,data2; > } > close File; > > and my question is, how to read these data follow the same fo

how to read the formatted data from the file?

2008-07-14 Thread vikingy
Hi all, There is a file created likes this: open File ">file.txt" or die $!; foreach .. <..> { printf File "%5d %11.2f\n", $data1,data2; } close File; and my question is, how to read these data follow the same format as "%5d %11.2f&#x

Re: how to read the last line of a file directly?

2008-07-07 Thread Randal L. Schwartz
> "Thomas" == Thomas Bätzler <[EMAIL PROTECTED]> writes: Thomas> Off the top of my head: And off the top of your head, you reinvented File::ReadBackwards for no real purpose. Might as well use the tested module instead. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503

RE: how to read the last line of a file directly?

2008-07-06 Thread Thomas Bätzler
loody <[EMAIL PROTECTED]> asked: > I try to read the last line of a file directly instead of using > while(<>) or something else to read each line until "undef" > bumped to me. > If you know some build-in functions or another modules for me > to use, please help me. Off the top of my head: #!/u

Re: how to read the last line of a file directly?

2008-07-06 Thread Amit Saxena
Hi Though I am not very sure, but can we use inbuilt seek function in perl ? Regards, Amit Saxena On Mon, Jul 7, 2008 at 12:39 AM, Rob Dixon <[EMAIL PROTECTED]> wrote: > loody wrote: > > > > I try to read the last line of a file directly instead of using > > while(<>) or something else to read

Re: how to read the last line of a file directly?

2008-07-06 Thread Rob Dixon
loody wrote: > > I try to read the last line of a file directly instead of using > while(<>) or something else to read each line until "undef" bumped to > me. > If you know some build-in functions or another modules for me to use, > please help me. Like this. Both Fcntl and Tie::File are standard

Re: how to read the last line of a file directly?

2008-07-06 Thread Gunnar Hjalmarsson
loody wrote: I look at http://perldoc.perl.org/index-modules-F.html but I cannot see File::Tail. File::Tail is not a core module. Neither is File::ReadBackwards which was suggested by somebody else. You get non-core modules from CPAN http://search.cpan.org/ -- Gunnar Hjalmarsson Email: http

Re: how to read the last line of a file directly?

2008-07-06 Thread Telemachus Odysseos
On Sun Jul 06 2008 @ 8:09, loody wrote: > Dear all: > I try to read the last line of a file directly instead of using > while(<>) or something else to read each line until "undef" bumped to > me. > If you know some build-in functions or another modules for me to use, > please help me. My first th

Re: how to read the last line of a file directly?

2008-07-06 Thread loody
Hi: I look at http://perldoc.perl.org/index-modules-F.html but I cannot see File::Tail. Would you please tell me where I can get the document describing how to use it? appreciate your help, miloody 2008/7/6 Aruna Goke <[EMAIL PROTECTED]>: > loody wrote: >> >> Dear all: >> I try to read the last li

Re: how to read the last line of a file directly?

2008-07-06 Thread Aruna Goke
loody wrote: Dear all: I try to read the last line of a file directly instead of using while(<>) or something else to read each line until "undef" bumped to me. If you know some build-in functions or another modules for me to use, please help me. appreciate your help, miloody use File::Tail mo

how to read the last line of a file directly?

2008-07-06 Thread loody
Dear all: I try to read the last line of a file directly instead of using while(<>) or something else to read each line until "undef" bumped to me. If you know some build-in functions or another modules for me to use, please help me. appreciate your help, miloody -- To unsubscribe, e-mail: [EMAI

RE: How to Read Files? [was: Re: learning perl 3rd vs 4th]

2008-05-25 Thread Thomas Bätzler
AndrewMcHorney <[EMAIL PROTECTED]> asked: > The spec does not allow for carriage returns or line feeds > making it a long line. Is there a way to read "x" number of bytes? $ perldoc -f read read FILEHANDLE,SCALAR,LENGTH,OFFSET read FILEHANDLE,SCALAR,LENGTH Attempts to read LENGTH

Re: How to Read Files? [was: Re: learning perl 3rd vs 4th]

2008-05-25 Thread AndrewMcHorney
Hello The spec does not allow for carriage returns or line feeds making it a long line. Is there a way to read "x" number of bytes? Andrew At 11:10 AM 5/25/2008, Rob Dixon wrote: Hi Andrew (If you are asking a new question of this group please make a fresh post with an appropriate subject

Re: How to Read Files? [was: Re: learning perl 3rd vs 4th]

2008-05-25 Thread Rob Dixon
Hi Andrew (If you are asking a new question of this group please make a fresh post with an appropriate subject line rather than replying to the end of an old thread. Many of us have email clients that correctly display the flow of threads, and using reply makes it look as if you have something mor

Re: How to read from keyboard?

2008-02-27 Thread MK
Okay i have the exact answer for you now. The following script will give you decimal and hexidecimal values for each keypress. The hex value can be used in normal regex and print statements using \x; the example in the script quits using capital Q and (from my keyboard) PgUp (this probabl

Re: How to read from keyboard?

2008-02-27 Thread Tom Phoenix
On Wed, Feb 27, 2008 at 10:28 AM, obdulio santana <[EMAIL PROTECTED]> wrote: > I want to read the following keys [home][End][Pageup][Page down] I think you're trying to capture an escape sequence, which is a series of characters sent for certain keystrokes. I'm appending below an example program

Re: How to read from keyboard?

2008-02-27 Thread obdulio santana
2008/2/27, MK <[EMAIL PROTECTED]>: > > On 02/27/2008 09:04:50 AM, obdulio santana wrote: > -> Hi. > > -> > -> I want to read from keyboard some keys [pagedown], > -> [Home],[End][PageUp][up][left][down][right]. > -> > -> how can I do it? > -> > -> Thanks in advance. > > -> > -> > > Term::Readkey al

Re: How to read from keyboard?

2008-02-27 Thread MK
On 02/27/2008 09:04:50 AM, obdulio santana wrote: -> Hi. -> -> I want to read from keyboard some keys [pagedown], -> [Home],[End][PageUp][up][left][down][right]. -> -> how can I do it? -> -> Thanks in advance. -> -> Term::Readkey also works but is poorly documented. Does anyone know how to use t

Re: How to read from keyboard?

2008-02-27 Thread Chas. Owens
On Wed, Feb 27, 2008 at 9:04 AM, obdulio santana <[EMAIL PROTECTED]> wrote: > Hi. > > I want to read from keyboard some keys [pagedown], > [Home],[End][PageUp][up][left][down][right]. > > how can I do it? > > Thanks in advance. > Take a look at Term::GetKey. * http://search.cpan.org/~barryp/L

How to read from keyboard?

2008-02-27 Thread obdulio santana
Hi. I want to read from keyboard some keys [pagedown], [Home],[End][PageUp][up][left][down][right]. how can I do it? Thanks in advance.

Re: How to read an rfc spec

2008-01-29 Thread Jeff Pang
-Original Message- >From: [EMAIL PROTECTED] >Sent: Jan 30, 2008 4:58 AM >To: beginners@perl.org >Subject: Re: How to read an rfc spec > >On Jan 28, 2:27 pm, [EMAIL PROTECTED] wrote: >> Hi everyone >> It cost nothing to be polite and only a few seconds

Re: How to read an rfc spec

2008-01-29 Thread wardbayern
On Jan 28, 2:27 pm, [EMAIL PROTECTED] wrote: > Hi everyone > It cost nothing to be polite and only a few seconds to be helpful. I was > myself looking at RFC822 a few days ago to try to figure out what headers > should be in an > email message I bounce with my Perl re-wtite script from a procmail r

Re: How to read an rfc spec

2008-01-28 Thread asmith9983
Hi everyone It cost nothing to be polite and only a few seconds to be helpful. I was myself looking at RFC822 a few days ago to try to figure out what headers should be in an email message I bounce with my Perl re-wtite script from a procmail recipe. Secret formats and being generally unhelpfu

Re: How to read an rfc spec

2008-01-28 Thread Tom Phoenix
On Jan 28, 2008 7:53 AM, 2apart <[EMAIL PROTECTED]> wrote: > You guys just love to scold... Nobody scolded you because of the love of scolding; don't pretend otherwise. Keeping a forum on-topic is everyone's duty. Answers will be faster and more reliable when the questions are posted to the corr

Re: How to read an rfc spec

2008-01-28 Thread Dr.Ruud
2apart schreef: > Here's a little section from rfc 2822. I know what the nemonics stand > for, but > I'm not sure how to read the spec Look at the end of http://www.perlmonks.org/?node_id=603647 -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe,

Re: How to read an rfc spec

2008-01-28 Thread 2apart
> This question is both irrelevant to the Perl language and very lazy. > RFC2822 is a specification for Internet text messages, and itself You guys just love to scold... guys? Are you female? :-) > 1.2.2. Syntactic notation > > This standard uses the Augmented Backus-Naur Form (ABNF) notat

Re: How to read an rfc spec

2008-01-28 Thread 2apart
On Jan 27, 7:21 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > 2apart wrote: > > > Subject: How to read an rfc spec > > What has your question to do with Perl? > > -- > Gunnar Hjalmarsson > Email:http://www.gunnar.cc/cgi-bin/contact.pl What does yours? ;-

Re: How to read an rfc spec

2008-01-27 Thread Rob Dixon
2apart wrote: > Here's a little section from rfc 2822. I know what the nemonics stand for, but I'm not sure how to read the spec, * [] () / what do they mean. If you have a handle on this could you translate the CFWS spec. It seems to contain all the code except the quote &

Re: How to read an rfc spec

2008-01-27 Thread Gunnar Hjalmarsson
2apart wrote: Subject: How to read an rfc spec What has your question to do with Perl? -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

How to read an rfc spec

2008-01-27 Thread 2apart
Here's a little section from rfc 2822. I know what the nemonics stand for, but I'm not sure how to read the spec, * [] () / what do they mean. If you have a handle on this could you translate the CFWS spec. It seems to contain all the code except the quote &quo

Re: How to read Perl source code

2007-09-05 Thread Paul Johnson
On Wed, Sep 05, 2007 at 09:42:18PM +0800, PeiYu Zeng wrote: > I'd like to read the built-in fuctions' code such as 'split', > but I don't know where it is in perl source code (e.g. perl-5.8.8). > > Can you tell me how to locate it? http://search.cpan.org/CPAN/authors/id/N/NW/NWCLARK/perl-5.8.8.t

RE: How to read Perl source code

2007-09-05 Thread Andrew Curry
The majority of these are compiled c programs. Im not sure of split but I know many are many which are. -Original Message- From: PeiYu Zeng [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 14:42 To: beginners@perl.org Subject: How to read Perl source code I'd like to read the bui

How to read Perl source code

2007-09-05 Thread PeiYu Zeng
I'd like to read the built-in fuctions' code such as 'split', but I don't know where it is in perl source code (e.g. perl-5.8.8). Can you tell me how to locate it? Thanks, Cheellay Zen

Re: How to read a very large file??

2007-08-13 Thread yaron
; Sent: Wednesday, August 8, 2007 3:09:26 PM (GMT+0200) Auto-Detected Subject: How to read a very large file?? Hi Guys, I have a very large file. It may be contain 1lac lines.. also it length is increased in dynamically.. Each time ( per 5 min) i need to read the contents from file & do som

Re: How to read a very large file??

2007-08-13 Thread sivasakthi
On Wed, 2007-08-08 at 05:58 -0700, Paul Lalli wrote: > On Aug 8, 8:09 am, [EMAIL PROTECTED] (Sivasakthi) wrote: > > I have a very large file. It may be contain 1lac lines > > Just FYI, that doesn't mean anything outside of India. You might want > to use more conventional numeric notation when

Re: How to read a very large file??

2007-08-09 Thread Chas Owens
On 8/9/07, sivasakthi <[EMAIL PROTECTED]> wrote: snip > > perldoc -f tell > > perldoc -f seek > > http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm > > Thanks for ur suggestionsIn that which method is better solution??? Depends on what you are doing. If the program run continuously th

Re: How to read a very large file??

2007-08-09 Thread sivasakthi
On Wed, 2007-08-08 at 08:12 -0400, Chas Owens wrote: > On 8/8/07, sivasakthi <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > > > I have a very large file. It may be contain 1lac lines.. also it > > length is increased in dynamically.. > > Each time ( per 5 min) i need to read the contents from file

Re: How to read a very large file??

2007-08-08 Thread Ken Foskey
On Wed, 2007-08-08 at 17:39 +0530, sivasakthi wrote: > Hi Guys, > > I have a very large file. It may be contain 1lac lines.. also it > length is increased in dynamically.. > Each time ( per 5 min) i need to read the contents from file & do some > work .. Suppose i have read the lines for first

Re: How to read a very large file??

2007-08-08 Thread Paul Lalli
On Aug 8, 8:09 am, [EMAIL PROTECTED] (Sivasakthi) wrote: > I have a very large file. It may be contain 1lac lines Just FYI, that doesn't mean anything outside of India. You might want to use more conventional numeric notation when posting to an internation forum. IIRC, 1lac means 10^5, right?

Re: How to read a very large file??

2007-08-08 Thread Chas Owens
On 8/8/07, sivasakthi <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I have a very large file. It may be contain 1lac lines.. also it > length is increased in dynamically.. > Each time ( per 5 min) i need to read the contents from file & do some > work .. Suppose i have read the lines for first 5 mi

How to read a very large file??

2007-08-08 Thread sivasakthi
Hi Guys, I have a very large file. It may be contain 1lac lines.. also it length is increased in dynamically.. Each time ( per 5 min) i need to read the contents from file & do some work .. Suppose i have read the lines for first 5 min then after some time it reads the same line also , so it

Re: How to read unicode data?

2006-12-07 Thread kilaru rajeev
Thanks for your help. Rajeev Kilaru On 12/7/06, zentara <[EMAIL PROTECTED]> wrote: On Tue, 5 Dec 2006 19:18:50 +0530, [EMAIL PROTECTED] ("kilaru rajeev") wrote: >Hi All, > >I got a "Little-endian UTF-16 Unicode C program character data, with very >long lines, with CRLF line terminators" file.

How to read unicode data?

2006-12-05 Thread kilaru rajeev
Hi All, I got a "Little-endian UTF-16 Unicode C program character data, with very long lines, with CRLF line terminators" file. I want to sort it and then what to extract some patterns from it. Could anyone let me know about this? I wrote the program as it is an ordinary text file but i didnt get

Re: how to read and process data coming on console

2006-10-27 Thread Mumia W.
On 10/27/2006 07:51 AM, Mihir Kamdar wrote: hi, I am capturing http transactions by using Net::PcapUtils module. I want to do real time processing on the captured packets. Following is a snippet of data that I am getting: POST /vodexUi/CVodSchedularViewMgr .php HTTP/1.0^M Host: 192.168.1.157^M

how to read and process data coming on console

2006-10-27 Thread Mihir Kamdar
hi, I am capturing http transactions by using Net::PcapUtils module. I want to do real time processing on the captured packets. Following is a snippet of data that I am getting: POST /vodexUi/CVodSchedularViewMgr .php HTTP/1.0^M Host: 192.168.1.157^M User-Agent: Mozilla/5.0 (X11; U; Linux i686;

how to read and process data coming on console

2006-10-27 Thread Mihir Kamdar
hi, I am capturing http transactions by using Net::PcapUtils module. I want to do real time processing on the captured packets. Following is a snippet of data that I am getting: POST /vodexUi/CVodSchedularViewMgr.php HTTP/1.0^M Host: 192.168.1.157^M User-Agent: Mozilla/5.0 (X11; U; Linux i686; e

RE: how to read write COM port

2005-11-08 Thread Timothy Johnson
$^E\n"); #Infinite loop while (1) { #If there is data in the COM port buffer while () { ...etc. ### -Original Message- From: swayam panda [mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 9:38 PM To: begi

how to read write COM port

2005-11-07 Thread swayam panda
Hi , I have installed Perl 5.8.7 on windows XP. How to read from COM port . when i am writing the program like this open( PORT, "COM1" ) or die "Can't open COM1: $!"; my $in=; print "$in" I am getting error msg that permission denied

RE: How to read and delete mail from a cron job

2005-03-22 Thread Moon, John
> Chris, > > Thank you for the suggestion but when I say "process" I mean that I need to > read the "reply", grep for user id and a confirmation number, update my > database to say that the email I send was "replied to" as requested, and > that the email address I was given was correct... I am reg

Re: How to read and delete mail from a cron job

2005-03-15 Thread Wiggins d'Anconia
"Because it's up-side down. Why is that? It makes replies harder to read. Why not? Please don't top-post." - Sherm Pendley, Mac OS X list Moon, John wrote: Chris, Thank you for the suggestion but when I say "process" I mean that I need to read the "reply", grep for user id and a confirmation number

RE: How to read and delete mail from a cron job

2005-03-15 Thread Felix Geerinckx
on di, 15 mrt 2005 17:07:10 GMT, John Moon wrote: > Plus I am not an admin but a developer and "procmail" is not a > product I believe I can use... (at least I can't find it on this UNIX > box) > > Anyone else? http://search.cpan.org/~simon/Mail-Audit-2.1/ and a line in .forward perhaps? --

RE: How to read and delete mail from a cron job

2005-03-15 Thread Moon, John
essage- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 9:03 AM To: Moon, John Cc: Perl Beginners Subject: Re: How to read and delete mail from a cron job On Tue, 15 Mar 2005, Moon, John wrote: > Can someone please give me some suggestions (or pointers) as to how

Re: How to read and delete mail from a cron job

2005-03-15 Thread Chris Devers
On Tue, 15 Mar 2005, Moon, John wrote: > Can someone please give me some suggestions (or pointers) as to how to > read and delete emails from a cron job. I will be receiving > conformation email and need to process it once then delete it - not > process it again. Is procmail n

How to read and delete mail from a cron job

2005-03-15 Thread Moon, John
Can someone please give me some suggestions (or pointers) as to how to read and delete emails from a cron job. I will be receiving conformation email and need to process it once then delete it - not process it again. Thank you in advance, John Moon -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to read this array?

2005-01-27 Thread Ing. Branislav Gerzo
Chris Devers [CD], on Wednesday, January 26, 2005 at 11:11 (-0500 (EST)) thoughtfully wrote the following: >> http://${host name deleted}/orelly/perl/prog3/ch09_03.htm CD> That looks like a pirated copy of one of O'Reilly's bookshelf CDs. uff, I am sorry for that, didn't know, misslooked .ua :( S

Re: How to read this array?

2005-01-26 Thread Alfred Vahau
That looks like a pirated copy of one of O'Reilly's bookshelf CDs. Thank you for pointing this out. I have been an O'Reilly customer on all things Unix and Perl and was shocked to see the online collection. In fact when I visited the site, I was greeted by a pop up banner in what looked like Russi

Re: How to read this array?

2005-01-26 Thread Chris Devers
On Wed, 26 Jan 2005, Ing. Branislav Gerzo wrote: > thats Array of Hashes, so just pust that in google, and you will see. > I did so, and found this: > > http://${host name deleted}/orelly/perl/prog3/ch09_03.htm That looks like a pirated copy of one of O'Reilly's bookshelf CDs. This is, in a re

Re: How to read this array?

2005-01-26 Thread Marcello
Jerry Preston ha scritto: I have this array and I am trying to figure out how to read $id in it. Any ideas? @history = ( { program => 'racer', version => '0.45', input => { '/home/' => undef, }, input_contents => '

RE: How to read this array?

2005-01-26 Thread Manav Mathur
my($val)=$history[0]->{'input_contents'} =~ m/\$id\s*=\s*\'([^']*)\'\;/ ; print $val ; Manav |-Original Message- |From: Jerry Preston [mailto:[EMAIL PROTECTED] |Sent: Wednesday, January 26, 2005 5:58 PM |To: 'Perl Beginners' |Subject: How to read th

RE: How to read this array?

2005-01-26 Thread Moon, John
Subject: How to read this array? I have this array and I am trying to figure out how to read $id in it. Any ideas? @history = ( { program => 'racer', version => '0.45', input => { '/home/' => undef, }, input_contents

Re: How to read this array?

2005-01-26 Thread Ing. Branislav Gerzo
Jerry Preston [JP], on Wednesday, January 26, 2005 at 06:27 (-0600) contributed this to our collective wisdom: JP> @history = ( JP> { JP> program => 'racer', thats Array of Hashes, so just pust that in google, and you will see. I did so, and found this: http://www.unix.org.ua/orelly/perl/

How to read this array?

2005-01-26 Thread Jerry Preston
I have this array and I am trying to figure out how to read $id in it. Any ideas? @history = ( { program => 'racer', version => '0.45', input => { '/home/' => undef, }, input_contents => ' $name= \'Jerr

how to read message using pop3

2004-11-25 Thread vishwas bhakit
hi i am doing for email reading script in perl. i can read message from header using "=~" binding operator. but i don't know how to read message of that mail. can plz anybody help me for this. thnx... Yahoo! India Matrimony: Find your life partneronline.

Re: how to read message from email in pop3

2004-11-25 Thread Chris Devers
On Thu, 25 Nov 2004, vishwas bhakit wrote: > i am [working on a] email reading script in perl. > i can read message[s] from header using "=~" binding operator. > but i don't know how to read message of that mail. > can [please] anybody help me for this. > > [t

how to read message from email in pop3

2004-11-25 Thread vishwas bhakit
hi i am doing for email reading script in perl. i can read message from header using "=~" binding operator. but i don't know how to read message of that mail. can plz anybody help me for this. thnx... Yahoo! India Matrimony: Find your life partneronline.

Parsing Excel Spreadsheets for Itinerary notifications (was: RE: how to read header of messages on server using socket)

2004-11-19 Thread Wiggins d Anconia
> > Hi Everyone, > > I have an excel spreadsheet that contains the itinerary of our traveling > technicians. I would like to parse that info and be notified of an > upcoming trip. For example: Say there is a trip coming up the Sunday > after next. I would like to be warned 3 days in advance to (w

RE: how to read header of messages on server using socket

2004-11-19 Thread adisegna
Hi Everyone, I have an excel spreadsheet that contains the itinerary of our traveling technicians. I would like to parse that info and be notified of an upcoming trip. For example: Say there is a trip coming up the Sunday after next. I would like to be warned 3 days in advance to (windows messeng

Re: how to read header of messages on server using socket

2004-11-17 Thread Ramprasad A Padmanabhan
On Wed, 2004-11-17 at 17:36, supriya devburman wrote: > hi can anybody tell me > how to read header of > incoming messages on pop3 > mail server using > socket. > > Thnx > use Mail::POP3Client http://search.cpan.org/~sdowd/POP3Client-2.13/POP3Client.pm Ram --

Re: how to read header of messages on server using socket

2004-11-17 Thread JupiterHost.Net
supriya devburman wrote: hi can anybody tell me how to read header of incoming messages on pop3 mail server using I think Mail::POP3Client can do this, take a look at search.cpan.org HTH :) Lee.M - JupiterHost.Net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

how to read header of messages on server using socket

2004-11-17 Thread supriya devburman
hi can anybody tell me how to read header of incoming messages on pop3 mail server using socket. Thnx __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

  1   2   >