Re: MIME::Lite::TT::HTML - Default template

2010-07-20 Thread Jeff Pang
2010/7/20 Mimi Cafe : > I am testing MIME::Lite::TT::HTML and it works as expected using my html > template. What I need to understand is why it does nit send email using my > text template or both template, since I did not explicitly specify which > template to use anywhere when calling new(). > >

Re: Word boundaries

2010-07-20 Thread John W. Krahn
Wagner, David --- Senior Programmer Analyst --- CFS wrote: -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Tuesday, July 20, 2010 15:06 To: Perl Beginners Subject: Re: Word boundaries Rob Dixon wrote: On 20/07/2010 16:22, Chandan Kumar wrote: Small confusion abou

Re: Word boundaries

2010-07-20 Thread Jim Gibson
On 7/20/10 Tue Jul 20, 2010 2:06 PM, "John W. Krahn" scribbled: > Rob Dixon wrote: >> On 20/07/2010 16:22, Chandan Kumar wrote: >>> >>> Small confusion about word boundaries. word boundaries matches >>> anything between non-word character and word character ,right. >> >> Not quite. > > Quite

Re: Word boundaries

2010-07-20 Thread Uri Guttman
and the docs say this: A word boundary ("\b") is a spot between two characters that has a "\w" on one side of it and a "\W" on the other side of it (in either order), counting the imaginary characters off the beginning and end of the string as matching a "\W". so

Re: Word boundaries

2010-07-20 Thread Uri Guttman
> "JWK" == John W Krahn writes: JWK> Rob Dixon wrote: >> On 20/07/2010 16:22, Chandan Kumar wrote: >>> >>> Small confusion about word boundaries. word boundaries matches >>> anything between non-word character and word character ,right. >> >> Not quite. JWK> Quite. >> /\

Re: Word boundaries

2010-07-20 Thread John W. Krahn
Chandan Kumar wrote: --- On Tue, 20/7/10, John W. Krahn wrote: Chandan Kumar wrote: Small confusion about word boundaries. word boundaries matches anything between non-word character and word character ,right. Correct. Here is small example : $_ = "?Jack do you know the beauty of perl" p

Re: Word boundaries

2010-07-20 Thread John W. Krahn
Rob Dixon wrote: On 20/07/2010 16:22, Chandan Kumar wrote: Small confusion about word boundaries. word boundaries matches anything between non-word character and word character ,right. Not quite. Quite. /\b/ matches any (zero-length) point in a string between a word and a non-word charact

Re: Word boundaries

2010-07-20 Thread Rob Dixon
On 20/07/2010 16:22, Chandan Kumar wrote: Hi , Small confusion about word boundaries. word boundaries matches anything between non-word character and word character ,right. Not quite. /\b/ matches any (zero-length) point in a string between a word and a non-word character, or between a word c

Re: Can't use string 1 as HASH ref while strict refs in use

2010-07-20 Thread Uri Guttman
> "D" == Dermot writes: D> I hope Uri will forgive me but I will expand a little. partially forgive! :) D> $received_arg = @_; D> You want to shift the argument list but you are actually assigned the D> argument array to a scalar value and that will render it's size (1). D> You

Re: Word boundaries

2010-07-20 Thread John W. Krahn
Chandan Kumar wrote: Hi , Hello, Small confusion about word boundaries. word boundaries matches anything between non-word character and word character ,right. Correct. Here is small example : $_ = "?Jack do you know the beauty of perl" print "Enter your text:"; my $pattern =; chomp $patte

Word boundaries

2010-07-20 Thread Chandan Kumar
Hi ,   Small confusion about word boundaries. word boundaries matches anything between non-word character and word character ,right.   Here is small example : $_ = "?Jack do you know the beauty of perl" print "Enter your text:"; my $pattern = ; chomp $pattern; if (/$pattern/){ print "1.$1\n"; }  

MIME::Lite::TT::HTML - Default template

2010-07-20 Thread Mimi Cafe
I am testing MIME::Lite::TT::HTML and it works as expected using my html template. What I need to understand is why it does nit send email using my text template or both template, since I did not explicitly specify which template to use anywhere when calling new(). I specified 2 templates below fo

RE: Can't use string 1 as HASH ref while strict refs in use

2010-07-20 Thread Mimi Cafe
Oh, yes! I see. I went through the codes several times but did not pick that mistake for some reason. Perhaps I was working too late in the night :-) This works: $received_arg = shift; Thanks => -Original Message- => From: Uri Guttman [mailto:u...@stemsystems.com] => Sent: 20 July 2010

Re: Compare file/dir size

2010-07-20 Thread Rob Coops
On Tue, Jul 20, 2010 at 1:51 PM, HACKER Nora wrote: > Hi, > > My aim is to compare two directories on different servers, whereas one > is the FTP'ed "copy" of the other, by checking whether both directories > are of exactly the same size. I tried to accomplish that with > Filesys::DiskUsage, but

Compare file/dir size

2010-07-20 Thread HACKER Nora
Hi, My aim is to compare two directories on different servers, whereas one is the FTP'ed "copy" of the other, by checking whether both directories are of exactly the same size. I tried to accomplish that with Filesys::DiskUsage, but unfortunately the two dirs are always of different size because t

install patch to module Text::LevenshteinXS

2010-07-20 Thread Frank Müller
dear all, I want to make use of the module Text::LevenshteinXS, I installed it via perl -MCPAN -e 'shell'. While using it I noticed that the module isn't UTF safe, so I searched the internet and found: https://rt.cpan.org/Public/Bug/Display.html?id=36685 There one can download a patch for this mo

Re: Can't use string 1 as HASH ref while strict refs in use

2010-07-20 Thread Dermot
On 20 July 2010 04:40, Mimi Cafe wrote: > I passed a has reference to my sub and tried dereferencing it within the sub > and get an exception Can't use string ("1") as HASH ref while strict refs in > use. > > > my %mail_parameters = ( >        'Fname' => "$nickname_db_exist[1]", >        'Lname' =

Re: DBI under SOAP/mod_perl

2010-07-20 Thread Dermot
Hi Octavian, On 19 July 2010 06:07, Octavian Rasnita wrote: > Does the $dsn contain the full path to the database? Yes. The dsn line is declared like this: DBI SQLite3 ### my $dsn = 'dbi:SQLite:dbname=/var/db/MyApp/myapp.db'; It's outside the constructor which I am not sure is good prac