make command throws error "Perl script no found" C:/Program No such file or directory

2009-01-06 Thread viji19812001
Hi, I have perl5.10.0 installed under C:/ and using bash prompt to run a make command. When I issue the make command it throws error "Perl Script not found" C:/Program no such file or directory Perl is not installed in Program files it under c: Also I do understand it could be a spacing proble

Re: make command throws error "Perl script no found" C:/Program No such file or directory

2009-01-06 Thread Owen
> Hi, > > I have perl5.10.0 installed under C:/ and using bash prompt to run a > make command. How are you doing that? > > When I issue the make command it throws error > > "Perl Script not found" C:/Program no such file or directory Where is the script that you are trying to run? > > Perl is n

Re: RegExp Searching within

2009-01-06 Thread Jenda Krynicky
From: mer...@stonehenge.com (Randal L. Schwartz) > > "Paul" == Paul M writes: > > Paul> Note: It is seriously > Paul> MALFORMED XML > > That's a nonsense phrase, like "somewhat pregnant". It's either XML, or > it isn't. And if it isn't, get after the vendor for spewing angle-bracketish > s

Re: Send email using smtp

2009-01-06 Thread Fúlvio Figueirôa
Hi Rob, Thanks for your answer. I change the code to try debug and put the correct SMTP address: $smtp_test = Net::SMTP->new('smtp.mail.yahoo.com', Timeout => 30, Debug => 1,)|| print "ERROR creating SMTP obj: $! \n"; but the following message is displayed: "Bad file descriptor". I don't need t

Re: Send email using smtp

2009-01-06 Thread Fúlvio
Hi Jenda, I try to debug the code and the error message was: "Bad file descriptor". I will try to use the other modules. I need only send an email. Thanks, Fúlvio On 5 jan, 17:46, je...@krynicky.cz (Jenda Krynicky) wrote: > From: Fúlvio > > > Hi all, > > > I am trying to send an email using

Re: Send email using smtp

2009-01-06 Thread Fúlvio
Hi Octavian, I don't need to use this server. I need only to send an email, but as I don't know perl very well I get an example using SMTP and yahoo server. Thanks, Fúlvio On 5 jan, 17:16, orasn...@gmail.com (Octavian Rasnita) wrote: > From: "Fúlvio" > Hi all, > > I am trying to send an email

Re: Send email using smtp

2009-01-06 Thread Octavian Rasnita
From: "Fúlvio" > Hi Octavian, > > I don't need to use this server. I need only to send an email, but as > I don't know perl > very well I get an example using SMTP and yahoo server. You can't send an email without using an SMTP server, or sendmail, qmail... Do you use an SMTP server for sending

Re: Send email using smtp

2009-01-06 Thread Ralf Peng
2009/1/6 Fúlvio : > Hi Jenda, > > I try to debug the code and the error message was: "Bad file > descriptor". > I will try to use the other modules. > I need only send an email. > If you are not familiar with SMTP protocal (RFC 821), you are hard to use Net::SMTP. I'd suggest you use another modul

Re: Send email using smtp

2009-01-06 Thread Gunnar Hjalmarsson
Fúlvio Figueirôa wrote: I don't need to use the SMTP procotol, Well, you *do* need an SMTP server that you are allowed to use. I need only send an email. This is an example that makes use of my favorite module Mail::Sender (written by Jenda, btw): use Mail::Sender; ref (new Mail

Re: Send email using smtp

2009-01-06 Thread Octavian Rasnita
From: "Fúlvio Figueirôa" Hi Octavian, I solved my problem using sendmail with the code below: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@somedomain\n"; print MAIL "Content-Type: text/plain\n"; print MAIL "Subject: Very simpl

trouble with 'tr' command

2009-01-06 Thread Tony Esposito
Hello, Trying to do the following and the variable $field_term does not transiterate.  The $foo becomes "name$age$grade$school$semester". #!/usr/bin/perl my $field_term = '|'; my $foo = "name,age,grade,school,semester"; $foo =~ tr/,/$field_term/;  __END__ Please advise.

Re: trouble with 'tr' command

2009-01-06 Thread John W. Krahn
Tony Esposito wrote: Hello, Hello, Trying to do the following and the variable $field_term does not transiterate. The $foo becomes "name$age$grade$school$semester". #!/usr/bin/perl my $field_term = '|'; my $foo = "name,age,grade,school,semester"; $foo =~ tr/,/$field_term/; __END__

Re: trouble with 'tr' command

2009-01-06 Thread Tony Esposito
I tried $foo =~ s/,/$field_term/g; and it worked fine ... thx. From: John W. Krahn To: Perl Beginners Sent: Tuesday, 6 January, 2009 13:19:20 Subject: Re: trouble with 'tr' command Tony Esposito wrote: > Hello, Hello, > Trying to do the following and the v

Re: print on the same line

2009-01-06 Thread h3xx
I find it's easier (and in this case totally doable) if you make something like this: for my $count (10 .. 0) { printf STDERR "%2d seconds remaining...\n", $count; sleep 1; print STDERR "\e[A"; } ^ "\e[A" is the VT-100 code to move the cursor up one line. ^ Also, expanding the number of se

Re: Send email using smtp

2009-01-06 Thread Fúlvio Figueirôa
Hi Octavian, I solved my problem using sendmail with the code below: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@somedomain\n"; print MAIL "Content-Type: text/plain\n"; print MAIL "Subject: Very simple email test\n\n"; print MAI

Re: print on the same line

2009-01-06 Thread Mr. Shawn H. Corey
On Tue, 2009-01-06 at 06:23 -0800, h3xx wrote: > I find it's easier (and in this case totally doable) if you make > something like this: > > for my $count (10 .. 0) { > printf STDERR "%2d seconds remaining...\n", $count; > sleep 1; > print STDERR "\e[A"; > } > > ^ "\e[A" is the VT-100 code

答复: print on the same line

2009-01-06 Thread Thomas Yan
This can work on windows. But in ActiveState Perl 5.8, I can't use for (10 .. 0), I have to reverse (0 .. 10) #! perl use strict; use warnings; for my $count (reverse (0 .. 10) ) { printf STDERR "%2d seconds remaining...\r", $count; sleep 1; } print "Boo!", ' 'x20, "\n"; #20 > length of the

Re: Send email using smtp

2009-01-06 Thread Steve Bertrand
Fúlvio Figueirôa wrote: > Hi Octavian, > I solved my problem using sendmail with the code below: > > open (MAIL, "|/usr/sbin/sendmail -t "); > print MAIL "From: someaddr...@somedomain\n"; > print MAIL "To: someaddre...@somedomain\n"; > print MAIL "Content-Type: text/plain\n"; > print MAIL "Subject

Re: print on the same line

2009-01-06 Thread John W. Krahn
h3xx wrote: I find it's easier (and in this case totally doable) if you make something like this: for my $count (10 .. 0) { You can't do that in Perl. The range operator has to have the smaller number on the left and the larger number on the right otherwise it will return an empty list and