Re: Dynamical our/my/local

2006-10-31 Thread Oleg V. Volkov
"Oleg V. Volkov" <[EMAIL PROTECTED]> wrote: [skip] > but declaring > parameters two times - first as "our" variables and then once again > as a list for this function to check against, so it can catch > errors in list looks kinda ineffective to me. Seems like I've found something that will help me

Re: Template module: where is it

2006-10-31 Thread Peter Scott
On Tue, 31 Oct 2006 12:22:39 +, Mário Gamito wrote: > I'm trying to find a PERL module named "Template" that i need to run an > application. > > Well, i found several Template-whatever modules, but not just "Template". Go to search.cpan.org, search for Template in Modules, first hit: http:/

Template module: where is it

2006-10-31 Thread Mário Gamito
Hi, I'm trying to find a PERL module named "Template" that i need to run an application. Well, i found several Template-whatever modules, but not just "Template". Can anyone help me, please ? Thanks in advance. Warm Regards, Mário Gamito

foreach question

2006-10-31 Thread Andy Greenwood
I have a reference to an annonymous array, which I am looping through with foreach(@$servref) { if ( checkServer($_, $dn) ) { push(@$goodservref, $_); } else { # server wasn't good. Add another item to the list push(@$servref, newitem);

Re: Template module: where is it

2006-10-31 Thread Beginner
If you are trying to use Template::Tookit then you would still declare it's use as use Template; I believe this is the module that your looking for if you've seen that declartion in a script somewhere. HTH. Dp. On 31 Oct 2006 at 12:22, Mário Gamito wrote: > Hi, > > I'm trying to find a PERL m

Re: foreach question

2006-10-31 Thread lawrence
> > I have a reference to an annonymous array, which I am looping through with > > foreach(@$servref) { > if ( checkServer($_, $dn) ) { > push(@$goodservref, $_); > } else { > # server wasn't good. Add another item to the list > push

Re: Problrm compiling GD

2006-10-31 Thread lawrence
> Hi, > > I'm trying to compile GD-2.35 CPAN module, but i get this error: > > "make: *** [GD.o] Error 1" > > Nothing else. > I've tried lower versions, but still get trhe same error. > > I'm running RHEL 2.1with PERL 5.6.1 > > Any help would be appreciated. > > Before installing the GD Perl

Problrm compiling GD

2006-10-31 Thread Mário Gamito
Hi, I'm trying to compile GD-2.35 CPAN module, but i get this error: "make: *** [GD.o] Error 1" Nothing else. I've tried lower versions, but still get trhe same error. I'm running RHEL 2.1with PERL 5.6.1 Any help would be appreciated. Warm Regards, Mário Gamito

Re: Find all matches in a string via regex

2006-10-31 Thread C . R .
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > You need to show us your code Chuck. Perl doesn't do that, in any situation > that > I can think of. Try running this on its own: > > my $s = '144 cm'; > $s =~ s/(\d+ +cm)/$1/g; > print $s; > > I get > > 144 cm > > what do you get? >

Problems compiling GD CPAN module

2006-10-31 Thread Mário Gamito
Hi, I'm trying to compile GD-2.35 CPAN module, but i get this error: "make: *** [GD.o] Error 1" Nothing else. I've tried lower versions, but still get trhe same error. I'm running RHEL 2.1with PERL 5.6.1 Any help would be appreciated. Warm Regards, Mário Gamito

Re: foreach question

2006-10-31 Thread Tom Phoenix
On 10/31/06, Andy Greenwood <[EMAIL PROTECTED]> wrote: I have a reference to an annonymous array, which I am looping through with foreach(@$servref) { Based on certain criteria, I want to add a new item to the end of the $servref array. Is it safe to do this inside the foreach loop? Nope;

Re: foreach question

2006-10-31 Thread Rob Dixon
Andy Greenwood wrote: I have a reference to an annonymous array, which I am looping through with foreach(@$servref) { if ( checkServer($_, $dn) ) { push(@$goodservref, $_); } else { # server wasn't good. Add another item to the list push

Re: Problrm compiling GD

2006-10-31 Thread Mário Gamito
Hi, On 10/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to compile GD-2.35 CPAN module, but i get this error: > > "make: *** [GD.o] Error 1" > > Nothing else. > I've tried lower versions, but still get trhe same error. > > I'm running RHEL 2.1with PERL 5.6.1 > > Any h

Naive Bayes classification module of CPAN

2006-10-31 Thread Saurabh Singhvi
Hi all, I used the Algorithm::NaiveBayes from CPAN. Now it's all working fine on the syntax. The problem is that I cannot get the 'result'. I trained the algorithm with some attributes and provided the labels alongwith using add_instance. And then trained it with train(). Now, to predict I used t

Re: [SPAM DETECT] split and grouping in regexp

2006-10-31 Thread xavier mas
A Dilluns 30 Octubre 2006 02:34, xavier mas va escriure: > A Dimarts 31 Octubre 2006 02:22, Daniel Kasak va escriure: > > my ( $, $mm, $dd ) = split /(-|\/)/, $mmdd; > > split function can't accept an expression on its syntax, only a character > as separator field. > -- > Xavier Mas you're

Re: Find all matches in a string via regex

2006-10-31 Thread Rob Dixon
Chuck Roberts wrote: > > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... >> >> You need to show us your code Chuck. Perl doesn't do that, in any situation >> that I can think of. Try running this on its own: >> >> my $s = '144 cm'; >> $s =~ s/(\d+ +cm)/$1/g; >> print $s; >> >> I get >> >

Re: Find all matches in a string via regex

2006-10-31 Thread Mumia W.
On 10/31/2006 10:20 AM, C.R. wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... You need to show us your code Chuck. Perl doesn't do that, in any situation that I can think of. Try running this on its own: my $s = '144 cm'; $s =~ s/(\d+ +cm)/$1/g; print $s; I get 144 cm what do

matching the end of an array element

2006-10-31 Thread Kathryn Bushley
Hi, I'm trying to do a substitution and am having trouble in that I am getting non-specific matches...I'd like to specify the regular expression to match any character to the left of $code and nothing or the end of the array element on the right of $code...is there a character class or some othe

Re: matching the end of an array element

2006-10-31 Thread Rob Dixon
Kathryn Bushley wrote: > Hi, I'm trying to do a substitution and am having trouble in that I am getting non-specific matches...I'd like to specify the regular expression to match any character to the left of $code and nothing or the end of the array element on the right of $code...is there a cha

Re: Naive Bayes classification module of CPAN

2006-10-31 Thread Rob Dixon
Saurabh Singhvi wrote: > Hi all, I used the Algorithm::NaiveBayes from CPAN. Now it's all working fine on the syntax. The problem is that I cannot get the 'result'. I trained the algorithm with some attributes and provided the labels alongwith using add_instance. And then trained it with train()

Re: matching the end of an array element

2006-10-31 Thread Mumia W.
On 10/31/2006 04:44 PM, Kathryn Bushley wrote: Hi, I'm trying to do a substitution and am having trouble in that I am getting non-specific matches...I'd like to specify the regular expression to match any character to the left of $code and nothing or the end of the array element on the right of $c