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

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

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

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'

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
On Jul 14, 10:57 am, [EMAIL PROTECTED] (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: 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
Amit Saxena wrote: > > On Mon, Jul 14, 2008 at 8:23 PM, vikingy <[EMAIL PROTECTED]> wrote: > >> 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,

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

2008-07-14 Thread Amit Saxena
#! /usr/bin/perl use warnings; use strict; open (PTR1, ")) { sscanf($str, "%5d %11.2f", $data1, $data2); # do whatever processing. } close (PTR1); Regards, Amit Saxena On Mon, Jul 14, 2008 at 8:23 PM, vikingy <[EMAIL PROTECTED]> wrote: > Hi all, > > There is a file created l

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

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

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, e-mail: [EMAIL PROTECTED] For additi

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? ;-) -- To unsubscribe, e-mail: [EMAI

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 " Thanks. FWS

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/

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 built-in

Re: How to read a very large file??

2007-08-13 Thread yaron
Hi, You can always read a file backwards until you reach a position that was already processed. This can be done by using File::ReadBackwards. Hope that helps Yaron Kahanovitch - Original Message - From: "sivasakthi" <[EMAIL PROTECTED]> To: "beginners perl" Sent: Wednesday, August 8

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

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.

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

RE: how to read write COM port

2005-11-08 Thread Timothy Johnson
You might want to check out the Win32::SerialPort module. I have a script that uses it. The documentation describes how to create your .conf file. Here is part of it, to give you an idea: ### use strict; use warnings; use Win32::SerialPort; my $comread;

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 not an option? Th

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 => ' $name= \'Jerry\'; $id = \'035\';

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 this array? | | |I have this array and I

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 => ' $name= \'Jerry\'; $id =

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/

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. > > [thanks]... We can only help you if

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 -- To unsubscribe, e-mail: [EMAI

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: [EMA

Re: How to read data from and Excel File

2004-08-13 Thread James Edward Gray II
On Aug 11, 2004, at 1:02 PM, jason corbett wrote: Do I need to have a special module to open/read an Excel spreadsheet, parse it, etc.? It's sure a LOT easier with a module. I would definitely go that way... I am trying to figure out if one is needed and what module is recommended. I went on CPA

RE: How to read data from and Excel File

2004-08-13 Thread Laurent Coudeur
Hi there You can check this http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2603/ParseExcel .pm the modules for excell are in Spreadsheet (for the search) -Original Message- From: jason corbett [mailto:[EMAIL PROTECTED] Sent: 11 August 2004 19:03 To: perl beginners Subject:

RE: How to read a pdf file in perl

2004-05-14 Thread Mallik
Hi Dani, By the OS is AIX, similar to UNIX. So, is there any module to install in AIX (UNIX) and read the pdf file. Thanks, Mallik. -Original Message- From: Dani Pardo [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 1:57 PM To: [EMAIL PROTECTED] Cc: Mallik Subject: Re: How to read

Re: How to read a pdf file in perl

2004-05-14 Thread Dani Pardo
On Friday 14 May 2004 09:33, Mallik wrote: > Dear Friends, > > I want to parse a pdf file as we do for text files using perl. Can anyone > help me out? Hi, you may check PDF::API2, it's a pretty nice module. --- Dani Pardo, [EMAIL PROTECTED] ENPLATER S.A -- To unsubscribe, e-mail: [EMAIL PROTE

Re: how to read from more than one files at a time

2003-10-16 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > thanks John and Rob for the great enlightenment, they taught me a lot. > > I wonder why the following is wrong: > while (($in1=) && ($in2=)) > { > .. > } In the special case where returns a null string (when the last record of a file is empty and has no terminating

Re: how to read from more than one files at a time

2003-10-16 Thread PerlDiscuss - Perl Newsgroups and mailing lists
thanks John and Rob for the great enlightenment, they taught me a lot. I wonder why the following is wrong: while (($in1=) && ($in2=)) { .. } Ben Rob Dixon wrote: > <[EMAIL PROTECTED]> wrote: > > > > I need to read from more than one file at a time and do some > > operation on the strings an

Re: how to read from more than one files at a time

2003-10-16 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > I need to read from more than one file at a time and do some > operation on the strings and join them together, and put into > one output file. > > Here is the code. But I noticed the second file never get > read. It must be sth very simple to overcome this. Can anyon

Re: how to read from more than one files at a time

2003-10-15 Thread John W. Krahn
Perldiscuss - Perl Newsgroups And Mailing Lists wrote: > > Hi, Hello, > I need to read from more than one file at a time and do some operation on > the strings and join them together, and put into one output file. > > Here is the code. But I noticed the second file never get read. It must be >

RE: how to read from more than one files at a time

2003-10-15 Thread LoBue, Mark
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 15, 2003 11:42 AM > To: [EMAIL PROTECTED] > Subject: how to read from more than one files at a time > > > Hi, > > I need to read from more than one file at a time and do some > operation

RE: How to read url with perl

2003-10-04 Thread TN
It's necessary to get the location URL to a place where perl can operate on it. Doing that manually is a pain and should not be necessary since the URL should be in the browser's cache or history. Digging it out of the cache or history is the problem and the solution to that depends on the browse

Re: How to read url with perl

2003-10-03 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Is there a perl module or else to help read the url below from the > url location bar in the browser. This url is generated by the > database vendor, so I have no control over it. I know if it was a > form it would be easy, but there is no form that I generated. After a >

RE: how to read?

2003-08-18 Thread Charles K. Clarkson
Jerry Preston <[EMAIL PROTECTED]> wrote: : : This one is new to me and I need to be able to : read $name and $age from the following: : : @history = ( : { : program => 'new', : version => '0.42', : }, : input => { : '/data' => 0.14, : '/home' => undef, : }, :

RE: how to read?

2003-08-18 Thread Jerry Preston
Ramprasad, I have no choice in the data format! Thanks, Jerry -Original Message- From: Ramprasad [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 2:24 AM To: [EMAIL PROTECTED]; Jerry Preston Cc: [EMAIL PROTECTED] Subject: Re: how to read? Jerry Preston wrote: > Hi! >

Re: how to read?

2003-08-18 Thread Ramprasad
Jerry Preston wrote: Hi! This one is new to me and I need to be able to read $name and $age from the following: @history = ( { program => 'new', version => '0.42', }, input => { '/data' => 0.14, '/home' => undef, }, input_contents => ' $name = \'Jerry\

RE: How to read a bitMap file with Perl ?

2003-08-14 Thread Dan Muey
> Hello all, Howdy! > Incase of reading a bitmap file into an array variable , if > I have to get the hex value do I > have to convert the bitmap file into Hex before sending it > into an array variable or after reading the bitmap file into > an array what should I do if I want the bitmap

Re: How to read multiple files in the same time ?

2003-07-30 Thread LI NGOK LAM
: "Daniela Silva - Absoluta.net" <[EMAIL PROTECTED]> To: "LI NGOK LAM" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 31, 2003 1:12 AM Subject: Re: How to read multiple files in the same time ? > Hi, > > I want to do something similar,

Re: How to read multiple files in the same time ?

2003-07-30 Thread Daniela Silva - Absoluta.net
Hi, I want to do something similar, read multiple files and extract some piece of readed lines for a file or screen, to generate te output file could be used unix redirection. Do you have new ideas how to work with multiple files ? Thanxs - Original Message - From: "LI NGOK LAM" <[EMAI

Re: How to read binary file?

2003-03-02 Thread NGaneshBabuA
Hi, open(FILEHANDLE, filename); binmode(FILEHANDLE); above two statements will work if you want to read a binary file. There is not need of using read function here. Regards, Ganesh "John W. Krahn" <[EMAIL PROTECTED]> wrote: >Jonathan Lee wrote: >> >> Hi all, > >Hello, > >> Can someone ple

Re: How to read binary file?

2003-02-27 Thread John W. Krahn
Jonathan Lee wrote: > > Hi all, Hello, > Can someone please help... > > I am trying to write a script to do the following - > > 1/ Open up a binary file to read. > > 2/ Read the file byte by byte. Why do you think that you need to read the file a byte at a time? > 3/ Convert the bytes read

  1   2   >