sendmail in perl

2011-05-11 Thread Irfan Sayed
hi all, i need to use sendmail module of perl to send mails. i have seen much perl modules to send mails but i dont know which one is suitable for my requirement my requirement is :  i need such module which will allow me to generate/create table structure format in the main body of mail  no dou

Re: How to convert to array? Why so many parens?

2011-05-11 Thread Rob Dixon
On 12/05/2011 03:25, siegfr...@heintze.com wrote: > > Darn -- I forgot to switch to plain text again. I hope this does not > appear twice -- I apologize if it does! Hi Siegfried. HTML messages are fine on this forum, although it is much better to present code in a monospaced font. > This works

Re: How to convert to array? Why so many parens?

2011-05-11 Thread C.DeRykus
On May 11, 7:25 pm, siegfr...@heintze.com wrote: > Darn -- I forgot to switch to plain text again. I hope this does not > appear twice -- I apologize if it does! > > This works and produces the desired result (I've simplified it a bit): > > $default= `grep pat file-name`)[0])=~/[0-9]+/)[0]); >

How to convert to array? Why so many parens?

2011-05-11 Thread siegfried
Darn -- I forgot to switch to plain text again. I hope this does not appear twice -- I apologize if it does! This works and produces the desired result (I've simplified it a bit): $default= `grep pat file-name`)[0])=~/[0-9]+/)[0]); Why does it take so many parentheses? I don't think it

Re: Regular Expression help!

2011-05-11 Thread jet speed
Hi All, Thanks for your time and valuable inputs, Appreciate it. I will try your suggestions and test it in my program. Sj

Re: [OT] Good Perl ISP's

2011-05-11 Thread Rob Dixon
On 11/05/2011 03:35, sono...@fannullone.us wrote: Can someone recommend a good ISP that keeps up with Perl? Right now we're with A2 Hosting and they're still stuck at version 5.8.8, and they refuse to upgrade because, and I quote . . . This is off topic, as the original poster said. Please c

Re: [OT] Good Perl ISP's

2011-05-11 Thread shawn wilson
On Wed, May 11, 2011 at 5:16 PM, wrote: > On May 11, 2011, at 12:49 PM, shawn wilson wrote: > >> besides, it's not like cPanel (or anything else) can't tell perl to >> 'use 5.8.8;' - so what is the point? > >        My point is simply this - perception.  There are plenty of hosts out > there tel

Re: [OT] Good Perl ISP's

2011-05-11 Thread sono-io
On May 11, 2011, at 12:49 PM, shawn wilson wrote: > besides, it's not like cPanel (or anything else) can't tell perl to > 'use 5.8.8;' - so what is the point? My point is simply this - perception. There are plenty of hosts out there telling people to use them because they have the lates

Re: Regular Expression help!

2011-05-11 Thread C.DeRykus
On May 11, 8:38 am, speedj...@googlemail.com (jet speed) wrote: > Hi All, > > I need help in matching the regular expression, the file is as below. > > I am trying to match number followed by Number ex 587, 128 in $1 and > 60:06:01:60:42:40:21:00:3A:AA:55:37:91:8A:DF:11 in $2 > > the $1 match works

Re: [OT] Good Perl ISP's

2011-05-11 Thread shawn wilson
On Wed, May 11, 2011 at 2:51 PM, wrote: > On May 11, 2011, at 4:26 AM, Paul Johnson wrote: > >>> I wonder what you urgently need that isn't in 5.8.8? Yes, 5.10/5.12 has >>> a few nice things in it, but nothing life-changing. >> >> I suppose the biggest things aren't really language features as su

Re: [OT] Good Perl ISP's

2011-05-11 Thread sono-io
On May 11, 2011, at 4:26 AM, Paul Johnson wrote: >> I wonder what you urgently need that isn't in 5.8.8? Yes, 5.10/5.12 has >> a few nice things in it, but nothing life-changing. > > I suppose the biggest things aren't really language features as such. > 5.14.0 will very shortly be released. Tha

Re: Regular Expression help!

2011-05-11 Thread Rob Dixon
On 11/05/2011 16:38, jet speed wrote: > Hi All, > > I need help in matching the regular expression, the file is as below. > > I am trying to match number followed by Number ex 587, 128 in $1 and > 60:06:01:60:42:40:21:00:3A:AA:55:37:91:8A:DF:11 in $2 > > the $1 match works find with regulare exp

Re: Regular Expression help!

2011-05-11 Thread Shawn H Corey
On 11-05-11 11:38 AM, jet speed wrote: I need help in matching the regular expression, the file is as below. I am trying to match number followed by Number ex 587, 128 in $1 and 60:06:01:60:42:40:21:00:3A:AA:55:37:91:8A:DF:11 in $2 the $1 match works find with regulare expression #if ($_=~ /\w

Re: Regular Expression help!

2011-05-11 Thread Leo Susanto
I ended up confused after reading your email. Please specify INPUT + OUTPUT/condition. You have already specify INPUT which is: LOGICAL UNIT NUMBER 587 UID:60:06:01:60:42:40:21:00:3A:AA:55:37:91:8A:DF:11 LOGICAL UNIT NUMBER 128 UID:60:06:01:60:50:4

Regular Expression help!

2011-05-11 Thread jet speed
Hi All, I need help in matching the regular expression, the file is as below. I am trying to match number followed by Number ex 587, 128 in $1 and 60:06:01:60:42:40:21:00:3A:AA:55:37:91:8A:DF:11 in $2 the $1 match works find with regulare expression #if ($_=~ /\w{7}\s\w{4}\s\w{6}\s(\d{1,4})/i)

Re: command output

2011-05-11 Thread Rob Dixon
On 11/05/2011 14:14, Irfan Sayed wrote: > thanks rob. > is there any another shorter way?? > capture_exec is just external perl module from cpan. i am just using it as it > is If all you want is to be able to see the output from the command, have you considered system("$workspace\\Dev_Tools\\N

Re: command output

2011-05-11 Thread Rob Dixon
On 11/05/2011 14:14, Irfan Sayed wrote: > On 11/05/2011 14:06, Rob Dixon wrote: >> On 11/05/2011 13:12, Irfan Sayed wrote: >>> >>> i am running system command using following line in perl script >>> >>> ($stdout,$stderr) = >>> capture_exec("$workspace\\Dev_Tools\\Nant\\bin\\nant >>> -buildfile:ab

Re: command output

2011-05-11 Thread Irfan Sayed
thanks rob. is there any another shorter way?? capture_exec is just external perl module from cpan. i am just using it as it is regards, irfan From: Rob Dixon To: Perl Beginners Cc: Irfan Sayed Sent: Wednesday, May 11, 2011 6:37 PM Subject: Re: command out

Re: Sending a HTTP::Request

2011-05-11 Thread Rob Dixon
On 11/05/2011 13:51, Asbjørn Thegler wrote: Hello, I am in the progress of writing a transparent HTTP proxy as an execise at DIKU. For this, i need to 'pass on' a request with no changes. What modules should i use for sending such request? Im quite lost as it is.

Re: command output

2011-05-11 Thread Rob Dixon
On 11/05/2011 13:12, Irfan Sayed wrote: i am running system command using following line in perl script ($stdout,$stderr) = capture_exec("$workspace\\Dev_Tools\\Nant\\bin\\nant -buildfile:abc.build $target"); print "$stdout\n"; print "$stderr\n"; now the issue is , the contents of these vari

Sending a HTTP::Request

2011-05-11 Thread Asbjørn Thegler
Hello, I am in the progress of writing a transparent HTTP proxy as an execise at DIKU . For this, i need to 'pass on' a request with no changes. What modules should i use for sending such request? Im quite lost as it is. Regards, Asbjørn

command output

2011-05-11 Thread Irfan Sayed
Hi, i am running system command using following line in perl script ($stdout,$stderr) = capture_exec("$workspace\\Dev_Tools\\Nant\\bin\\nant -buildfile:abc.build $target"); print "$stdout\n"; print "$stderr\n"; now the issue is , the contents of these variable gets printed on console after th

Re: [OT] Good Perl ISP's

2011-05-11 Thread Paul Johnson
On Wed, May 11, 2011 at 11:13:51AM +0100, Rob Dixon wrote: > I wonder what you urgently need that isn't in 5.8.8? Yes, 5.10/5.12 has > a few nice things in it, but nothing life-changing. I suppose the biggest things aren't really language features as such. 5.14.0 will very shortly be released. T

Re: [OT] Good Perl ISP's

2011-05-11 Thread Rob Dixon
On 11/05/2011 03:35, sono...@fannullone.us wrote: Can someone recommend a good ISP that keeps up with Perl? Right now we're with A2 Hosting and they're still stuck at version 5.8.8, and they refuse to upgrade because, and I quote, "we unfortunately cannot perform a global upgrade on perl as it

Re: [OT] Good Perl ISP's

2011-05-11 Thread Shlomi Fish
On Wednesday 11 May 2011 05:57:50 Jeff Pang wrote: > 2011/5/11 : > >Can someone recommend a good ISP that keeps up with Perl? Right > > now we're with A2 Hosting and they're still stuck at version 5.8.8, and > > they refuse to upgrade because, and I quote, > > Using VPS you can install a