Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Paul Archer
Derek, it was nice of you to include your title and all. That way when a future (potential) employer Googles you, they'll know for sure that it was you that was this childish and immature. 8:13am, Derek Ash wrote: Perl Sucks! Derek Ash Application Programmer II University of Illinois

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Jay Savage
On 9/1/06, Lou Hernsen [EMAIL PROTECTED] wrote: Well... he's right Right is a matter of opinion. Trolling is a matter of fact. And he's a troll. At this point, it doesn't really matter if he's right or wrong. Its confusing and overly complicated, in its multiple syntaxes, for a compiled

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Tyler Gee
On 9/1/06, Mary Anderson [EMAIL PROTECTED] wrote: Thanks for the tip. I will try it, even though there is another suggestion ($fieldValue eq '') which works! Something can be defined to be '', so that perhaps defined or exists won't always work. That's why I said it depends on how it was

get week numeration in a year?

2006-09-01 Thread Practical Perl
Hello,list, Is there a fast way to get the week numeration in a year? For example,now it's 35th week in 2006,next week is 36th week of this year then. Thanks.

RE: get week numeration in a year?

2006-09-01 Thread Wijaya Edward
Hi Look for a CPAN module called Date::Calc. There you can find a method called Week_of_Year. Hope that's what you want. Regards, -- Edward WIJAYA SINGAPORE From: Practical Perl [mailto:[EMAIL PROTECTED] Sent: Fri 9/1/2006 3:34 PM To: beginners perl

Re: get week numeration in a year?

2006-09-01 Thread John W. Krahn
Practical Perl wrote: Hello,list, Hello, Is there a fast way to get the week numeration in a year? For example,now it's 35th week in 2006,next week is 36th week of this year then. $ perl -MPOSIX -le'print strftime q/%W/, localtime' 35 John -- use Perl; program fulfillment -- To

RE: Trouble with variable scoping

2006-09-01 Thread Roman Daszczyszak
From: Charles K. Clarkson [EMAIL PROTECTED] To: beginners@perl.org Date: Thu, 31 Aug 2006 10:41:33 -0500 Subject: RE: Trouble with variable scoping Roman Daszczyszak wrote: : In my perl script, I have a global variable called : @excludedIPAddresses, declared at the top of the script using : my.

Re: Trouble with variable scoping

2006-09-01 Thread John W. Krahn
Roman Daszczyszak wrote: What is the scope of a variable that is declared at the top of a file using 'my'? I had thought that this would just make a variable that is scoped to the entire file, yet 'local' does not localize the variable in a subroutine, even though it (local) according

Re: Help with rotating logs

2006-09-01 Thread Ken Foskey
On Thu, 2006-08-31 at 12:59 -0700, binu sam wrote: Hi, I am trying to write a script that can take log files in /var/log to a different directory (/opt/backup) every week. Each week it has to deposit the logs on a seperate directory with proper dates Can anyone has a script

lazy capture don't work

2006-09-01 Thread Meir Yanovich
hello all im trying to capture only the first brackets but no matter what i do i keep capturing from the first brackets to the last one , here what i have : % if (!Env.strLen(oidInvoice)); szDocumentTitle= Env.formatS(S,Env.getMsg(BP_INVOICE_ENUMERATION_CREATE_TITLE)) % and the

Re: Trouble with variable scoping

2006-09-01 Thread Dr.Ruud
Moon, John schreef: Maybe you want.. Use vars qw(@excludedIPAddresses); s/Use/use/, but: use vars has been antiquated by our(). -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: lazy capture don't work

2006-09-01 Thread Jay Savage
On 9/1/06, Meir Yanovich [EMAIL PROTECTED] wrote: hello all im trying to capture only the first brackets but no matter what i do i keep capturing from the first brackets to the last one , here what i have : % if (!Env.strLen(oidInvoice)); szDocumentTitle=

Filtering question

2006-09-01 Thread Johnson, Reginald \(GTI\)
Hi All, I have just started to receive these mails and find them very useful. However, I would like to know if anyone has found an effective method to filter the emails so that they can go directly into their own folder? The problem is that since the mails come from all of use users I haven't

Re: Filtering question

2006-09-01 Thread Eric Krause
I think if you filter on who they're to as opposed to who they are from, you should be fine. All these emails are to beginners@perl.org. Use that as your filter criteria. Johnson, Reginald (GTI) wrote: Hi All, I have just started to receive these mails and find them very useful. However, I

Re: [META] Filtering question

2006-09-01 Thread Dr.Ruud
Johnson, Reginald (GTI) schreef: However, I would like to know if anyone has found an effective method to filter the emails so that they can go directly into their own folder? This is not a Perl question, but an MS Outlook question, so if you don't know how to do this, then go and ask on an