cpan module installation on Mac OS Leopard

2008-08-18 Thread WetMogwai
I'm having trouble with a Perl script. I installed Mac::Growl through CPAN. It worked, but seemed to copy the final files to a place that doesn't exist. I can't find it now. When I run my script, it says it can't find Mac::Growl in @INC. How can I get CPAN to install modules into directories that e

Using match variable

2008-08-18 Thread Orson
I need to change perl script, but I am new to perl. Script is too long to copy here, but what I need is construct a reg ex pattern and store in variable. I need to concatenate this from many other variables. Then I must use this variable to do a match. Something like this: while (<>) { chomp; my $p

Unmatched [ in regex; marked by <--- HERE .........

2008-08-18 Thread Merdinus
The command that's causing this error is: my @refs = split('[', $references); I also tried >>> my @refs = split("[", $references); <<< (doublle quotes instead) and got the same error. If I change it to my @refs = split("asdfsdfas", $references); then I get no such error. The

PERL -Problem with thread configuration with perl5.10 version

2008-08-18 Thread Surendiran Subramanian
Hi All, Can you please provide me the details for enabling the ithread for existing perl version in the solaris machine? I couldnt find any threads enabled in the perl5.8.4 version I am using.So I have installed 5.10 version with configuring ithread by "./Configure -Dusethreads".Threads got en

Re: hash of arrays

2008-08-18 Thread Dr.Ruud
"ANJAN PURKAYASTHA" schreef: > i'm struggling with a hash of arrays problem. > suppose i create the following HOA: > $HOA{$key}= [qw(a,b,c,d)]; which is equivalent to $HOA{ $key } = [ 'a', 'b', 'c', 'd' ]; and can also be written as $HOA{ $key } = [ 'a' .. 'd' ]; > how do i push an eleme

Re: using perl references from subroutine

2008-08-18 Thread John W. Krahn
Noah wrote: Hi there, Hello, I have a routine returning a perl reference and I am trying to figure out how to properly use the hash tables in the main section of my perl proggie. --- from the main program my $templateConfiguation = &readConfigTemplate($templateConfigFilename, $sortedTemp

Re: using perl references from subroutine

2008-08-18 Thread Mr. Shawn H. Corey
On Mon, 2008-08-18 at 15:10 -0700, Noah wrote: > print DIFF "d> $key" if !exists > ($templateConfiguation{$templateType}{$key}); > print MATCH "m> $key" if exists > ($templateConfiguation{$templateType}{$key}); Try: print DIFF "d> $key" if !exists ($templateConfigua

using perl references from subroutine

2008-08-18 Thread Noah
Hi there, I have a routine returning a perl reference and I am trying to figure out how to properly use the hash tables in the main section of my perl proggie. --- from the main program my $templateConfiguation = &readConfigTemplate($templateConfigFilename, $sortedTemplateConfigFilename);

Re: hash of arrays

2008-08-18 Thread Mr. Shawn H. Corey
On Mon, 2008-08-18 at 16:03 -0400, ANJAN PURKAYASTHA wrote: > hi, > i'm struggling with a hash of arrays problem. > suppose i create the following HOA: > $HOA{$key}= [qw(a,b,c,d)]; > > how do i push an element into the $HOA{$key} array? > > tia, > anjan > By de-referencing it: push @{ $HOA{

hash of arrays

2008-08-18 Thread ANJAN PURKAYASTHA
hi, i'm struggling with a hash of arrays problem. suppose i create the following HOA: $HOA{$key}= [qw(a,b,c,d)]; how do i push an element into the $HOA{$key} array? tia, anjan -- = anjan purkayastha bioinformatics analyst whitehead institute for biomedical research

Re: Outlook with perl

2008-08-18 Thread Jenda Krynicky
From: "Pat Rice" <[EMAIL PROTECTED]> > Hi all > Just wondering is there any way we can talk to outlook using perl, as > in to look at a users inbox and then do an action on that ? for > example send a mail from a users mail. > > And no before you ask, I'm not trying to write anot

Re: Question about email address problem

2008-08-18 Thread Jenda Krynicky
Date sent: Mon, 18 Aug 2008 17:50:16 +0800 From: loody <[EMAIL PROTECTED]> To: beginners@perl.org Subject:Question about email address problem > Dear all: > I use Mail::Sender to send mails. > But I have a problem. > How could I pa

Re: Outlook with perl

2008-08-18 Thread Dermot
2008/8/18 Pat Rice <[EMAIL PROTECTED]>: > Hi all > Just wondering is there any way we can talk to outlook using perl, as > in to look at a users inbox and then do an action on that ? for > example send a mail from a users mail. I get about 10 hits if I search cpan for 'Outlook'. Perhaps one of t

Outlook with perl

2008-08-18 Thread Pat Rice
Hi all Just wondering is there any way we can talk to outlook using perl, as in to look at a users inbox and then do an action on that ? for example send a mail from a users mail. And no before you ask, I'm not trying to write another spamming application :) Pat -- To unsubscribe, e-mail: [EMAIL

Re: Question about email address problem

2008-08-18 Thread Mr. Shawn H. Corey
On Mon, 2008-08-18 at 17:50 +0800, loody wrote: > Dear all: > I use Mail::Sender to send mails. > But I have a problem. > How could I pass email address to the sendto parameter. > > Usually we use ' ' or "\@" to avoid taking care of @. > just like ex1 below. > > But I use an array to save my rec

Question about email address problem

2008-08-18 Thread loody
Dear all: I use Mail::Sender to send mails. But I have a problem. How could I pass email address to the sendto parameter. Usually we use ' ' or "\@" to avoid taking care of @. just like ex1 below. But I use an array to save my receivers and I want to pass them one by one. like ext2 below. And pe

Re: search and replace command with output

2008-08-18 Thread Xavier Mas
El Thursday 14 August 2008 17:30:43 [EMAIL PROTECTED] va escriure: > Xavier, > > Thanks for the tip but can you help me by pasting the code too? It > might take 2 mins for you but I will have to fiddle with it longer :( > > Regards. > > On Aug 14, 6:02 am, [EMAIL PROTECTED] (Xavier Mas) wrote: > >

Re: Execute the Linux command on remote machine

2008-08-18 Thread Dr.Ruud
"Irfan J Sayed (isayed)" schreef: > Now I have installed entire Net::SSH::Perl module in the /tmp folder. It looks like you "copied" in stead of "installed". http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [