Re: E-mail manipulation

2002-11-29 Thread joel_divekar
Hi Marcelo You can find a small Perl program written by me on www.perlmonks.org under 'code' -> 'E-Mail programs' -> 'Simple POP3 client Version 1.0.' (User - Jamnet) Regards Joel Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Bo

Re: MboxParser

2002-11-29 Thread Ramprasad A Padmanabhan
instead of my $mail = File::Spec->catfile('testbox'); my $mb = Mail::MboxParser->new($mail); use my $mb = Mail::MboxParser->new("testbox"); Ankit Gupta wrote: Hello, I am using Mboxparser module for parsing email messages for their headers and body parts. Right now I am working on Windows pl

Re: Repeating Regexp

2002-11-29 Thread Tom Allison
Paul Murphy wrote: Thanks for the answers I got for this one. There was a bit of a resounding "doh!" when I saw the "just add g" answer. I must have read about this a million times before, but those brain cells just failed to activate when I was trying to do this yesterday. Stick a "g" on t

Re: Input from command line.

2002-11-29 Thread John W. Krahn
Simas Mockevicius wrote: > > Hi, Hello, > I need one thing: I am starting from shell perl program, and I need to > enter some parameters (characters, numbers). Of cource I can do this with > shell arg. but I need it to input when the program is running. Any > sugestions ? All arguments entered

Re: how to delete space at end of line

2002-11-29 Thread John W. Krahn
Joseph Paish wrote: > > i have a data file that i am reading into an array. some of the data file > entries have a space at the end of the line and some do not. is there some > way that i can delete the space if it exists as i read each line (something > like chomp deletes newlines if they exist

Re: oneliner to delete last line of file

2002-11-29 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: > > Hello all Hello, > I am using redhat linux 7.2 > > I am required to delete the last line of a file. Now I am doing a > cumbersome thing like this > > perl -e '@_=<>;pop @_;print @_;' $FILE > $FILE.tmp > mv $FILE.tmpl $FILE > > Cant I do it any better Here i

Re: how to delete space at end of line

2002-11-29 Thread badchoice
@==map$`x/ ?$/,<> maintainable? sure ;-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to delete space at end of line

2002-11-29 Thread Duarte Cordeiro
I think you can: $line=~s/\s*$//; It deletes every space at the end of the line ( I think) ;) -- Duarte Manuel Cordeiro Manager - IT - Security & Communications mailto:[EMAIL PROTECTED] | msn: [EMAIL PROTECTED] | http://www.neoris.com/ -- Neoris Portugal Edificio Inovação IV - Sala 819

how to delete space at end of line

2002-11-29 Thread Joseph Paish
i have a data file that i am reading into an array. some of the data file entries have a space at the end of the line and some do not. is there some way that i can delete the space if it exists as i read each line (something like chomp deletes newlines if they exist)? preferably something leg

Re: somemodule.pm

2002-11-29 Thread Rob Dixon
Javeed Sorry, but we don't know what you mean. It looks like you've been reading a sample of Perl where someone has used 'somemodule.pm' as an example applicable to modules in general. I doubt very much that there is a real module with this name. Perhaps you can tell us where you got the name fr

Re: somemodule.pm

2002-11-29 Thread Jenda Krynicky
From: Javeed SAR <[EMAIL PROTECTED]> > can any of u give me somemodule.pm ??? Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in S

somemodule.pm

2002-11-29 Thread Javeed SAR
Hi all can any of u give me somemodule.pm Regards j@veed

Re: Input from command line.

2002-11-29 Thread Harry Putnam
"Simas Mockevicius" <[EMAIL PROTECTED]> writes: >> You want to read from ? >Yes. > >> Simas Mockevicius wrote: >>> Hi, >>> >>> I need one thing: I am starting from shell perl program, and I need to >>> enter some parameters (characters, numbers). Of cource I can do this >>> with shell arg. bu

HTML::SimpleLinkExtor

2002-11-29 Thread Nandita Shenvi
Hallo All, I tried to solve my problem using HTML::SimpleLinkExtor and HTML::LinkExtor.In both cases I got a similar error message. my scrpit is as follows: #!/usr/bin/perl -w use strict; use HTML::TreeBuilder; #Parser that builds HTML syntax

MboxParser

2002-11-29 Thread Ankit Gupta
Hello, I am using Mboxparser module for parsing email messages for their headers and body parts. Right now I am working on Windows platform and its working fine with my script. Then I decided to run it on Linux but its not working at all. It does not give any error but does not parses any message

Re: Input from command line.

2002-11-29 Thread Simas Mockevicius
> You want to read from ? Yes. > Simas Mockevicius wrote: >> Hi, >> >> I need one thing: I am starting from shell perl program, and I need to >> enter some parameters (characters, numbers). Of cource I can do this >> with shell arg. but I need it to input when the program is running. >> Any su

escapeHTML

2002-11-29 Thread sulfericacid
I have a few questions for you perl guru's. print $query->escapeHTML( join '', ( map{ defined($form{$_}) ? qq(\n):'' } qw ( abstract author distributor copyright description robots language distribution rating ) ),'\n' ); When I use that snipplet it literally prints

ReadLine questions

2002-11-29 Thread Harry Putnam
I want to have a vi like editor available for user input to a perl script. Someone suggested Term::ReadLine. That may be what I need but having a problem figuring out how to use it. I wasn't able to convert the examle in Term::ReadLine for my use. SYNOPSIS use Term::ReadLine;

Re: E-mail manipulation

2002-11-29 Thread Ankit Gupta
Hello, I am using MailMboxparser module and it can do what you want but the thing is that you will be able to read headers only when mails are in mail box. I have already implemented the same but as per your mail, you need headers before they are delivered to mail box. Ankit "Marcelo" <[EMAIL PR

Re: Input from command line.

2002-11-29 Thread Ramprasad A Padmanabhan
You want to read from ? Simas Mockevicius wrote: Hi, I need one thing: I am starting from shell perl program, and I need to enter some parameters (characters, numbers). Of cource I can do this with shell arg. but I need it to input when the program is running. Any sugestions ? Thanx, Symka.

Input from command line.

2002-11-29 Thread Simas Mockevicius
Hi, I need one thing: I am starting from shell perl program, and I need to enter some parameters (characters, numbers). Of cource I can do this with shell arg. but I need it to input when the program is running. Any sugestions ? Thanx, Symka. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: oneliner to delete last line of file

2002-11-29 Thread Sudarshan Raghavan
On Fri, 29 Nov 2002, Ramprasad A Padmanabhan wrote: > > Hello all > > I am using redhat linux 7.2 > > I am required to delete the last line of a file. Now I am doing a > cumbersome thing like this > > perl -e '@_=<>;pop @_;print @_;' $FILE > $FILE.tmp > mv $FILE.tmpl $FILE > > Cant I do it an

oneliner to delete last line of file

2002-11-29 Thread Ramprasad A Padmanabhan
Hello all I am using redhat linux 7.2 I am required to delete the last line of a file. Now I am doing a cumbersome thing like this perl -e '@_=<>;pop @_;print @_;' $FILE > $FILE.tmp mv $FILE.tmpl $FILE Cant I do it any better -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: module for IP calculation.

2002-11-29 Thread Nigel Wetters
On Wed, 2002-11-27 at 15:33, Admin-Stress wrote: > Is there any ready to use perl module for IP address calculation? Little to do with netmasks etc., but you might be interested in a module I released a couple of weeks ago named IP::Country::Fast (available from CPAN). When passed an IP address,