Re: Enum

2007-04-12 Thread Jeff Pang
Are you looking for C style enumerated types? AFAIK,Perl doesn't have this built-in type.But you could get it on CPAN: http://search.cpan.org/~zenin/enum-1.016/enum.pm 2007/4/13, yitzle <[EMAIL PROTECTED]>: Don't shoot me! I can't find enum on the perldocs. Perl does have an enum, right? How d

Enum

2007-04-12 Thread yitzle
Don't shoot me! I can't find enum on the perldocs. Perl does have an enum, right? How do I go about making an enum? I basically want a bunch of variables to equal subsequent values, eg 0, 1, 2, ... Thanks!

Re: Bandwidth Generated

2007-04-12 Thread John W. Krahn
Rob Dixon wrote: > yitzle wrote: >> >> OK... I got this script that gets a lot of hits -> generates high >> bandwidth. >> Is there a simple way to check the amount of bytes printed to STDOUT so I >> can track the bandwidth it is generating? > > my $nbytes = tell STDOUT; tell() usually only works

Re: Bandwidth Generated

2007-04-12 Thread Rob Dixon
yitzle wrote: OK... I got this script that gets a lot of hits -> generates high bandwidth. Is there a simple way to check the amount of bytes printed to STDOUT so I can track the bandwidth it is generating? my $nbytes = tell STDOUT; Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Bandwidth Generated

2007-04-12 Thread yitzle
OK... I got this script that gets a lot of hits -> generates high bandwidth. Is there a simple way to check the amount of bytes printed to STDOUT so I can track the bandwidth it is generating?

Re: Mails should not go in SPAM Box

2007-04-12 Thread Ken Foskey
On Thu, 2007-04-12 at 18:56 +0530, Anish Kumar K wrote: > Hi > > Mails which are send by the perl script are usually found in the SPAM or > JUNK as a result most of the mails are not seen by the recipient. Is > there any way in the perl script we can set some Magical Header :) by > which the ma

Re: How to set FTP module time out?

2007-04-12 Thread unix
On Thu, April 12, 2007 10:44 am, Chas Owens wrote: > On 4/12/07, Paul <[EMAIL PROTECTED]> wrote: >> I see default time out is 120, in seconds I assume. How would I change >> this within a perl script? Problem is, when the deomon is locked up, it >> just sits there, so I want to shorting this so t

Re: How to set FTP module time out?

2007-04-12 Thread yaron
Hi, Lets set it to 200 secs use Net::FTP; my $ftp = new Net::FTP(hostnale,Timeout => 200); ... - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, April 12, 2007 5:33:30 PM (GMT+0200) Auto-Detected Subject: How to set FTP module time out? I see

Re: How to set FTP module time out?

2007-04-12 Thread Chas Owens
On 4/12/07, Paul <[EMAIL PROTECTED]> wrote: I see default time out is 120, in seconds I assume. How would I change this within a perl script? Problem is, when the deomon is locked up, it just sits there, so I want to shorting this so the script jumpts out and doesn't sit there forever. Thanks.

How to set FTP module time out?

2007-04-12 Thread Paul
I see default time out is 120, in seconds I assume. How would I change this within a perl script? Problem is, when the deomon is locked up, it just sits there, so I want to shorting this so the script jumpts out and doesn't sit there forever. Thanks. http://search.cpan.org/~gbarr/libnet-1.20/Ne

Re: Mails should not go in SPAM Box

2007-04-12 Thread yaron
Hi, What type of mail mechanism are you using? Do you really use sendmail or connect smtp server? Yaron Kahanovitch - Original Message - From: "Chas Owens" <[EMAIL PROTECTED]> To: "Anish Kumar K" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Sent: Thursday, April 12, 2007 4:28:23 PM (GMT+020

Re: Mails should not go in SPAM Box

2007-04-12 Thread Chas Owens
On 4/12/07, Anish Kumar K <[EMAIL PROTECTED]> wrote: Hi Mails which are send by the perl script are usually found in the SPAM or JUNK as a result most of the mails are not seen by the recipient. Is there any way in the perl script we can set some Magical Header :) by which the mail goes to INBOX

Re: Mails should not go in SPAM Box

2007-04-12 Thread LoneWolf
Sounds like a combination of both. If your mail server is set up to allow internal sites to pass through with no checks, then you should be OK If you mail server checks everything, white list your internal domain If your mail server is not the culprit, check your email program and white-list thi

Trouble installing Tree-Suffix-0.14

2007-04-12 Thread a_arya2000
Hi I am trying to install Tree-Suffix-0.14. And when I run Makefile.PL, I get following messages - Unrecognized argument in LIBS ignored: 'mypath /libstree-0.4.2/lib' Unrecognized argument in LIBS ignored: 'mypathÂ…. /lib:.' Note (probably harmless): No librar

Mails should not go in SPAM Box

2007-04-12 Thread Anish Kumar K
Hi Mails which are send by the perl script are usually found in the SPAM or JUNK as a result most of the mails are not seen by the recipient. Is there any way in the perl script we can set some Magical Header :) by which the mail goes to INBOX only. First of all can we do in the perl script o

Re: Using regular expressions with delimitaters

2007-04-12 Thread yaron
Hi The "8.1.8" =~ /[\d $versao \s]/ will always return true because the square parenthesis ([]) matches the string against one of the chars inside. In this case the \d (digit) matches because you have a digit inside. In your code you wrote "8.1.8" =~ /$version/. This takes the $version a treat