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
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
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
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
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
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
@==map$`x/ ?$/,<>
maintainable? sure ;-)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
Hi all
can any of u give me somemodule.pm
Regards
j@veed
"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
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
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
> 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
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
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;
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
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.
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
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
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
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,
24 matches
Mail list logo