Re: Encoding angle brackets in HTML text nodes

2012-02-23 Thread Rob Dixon
On 24/02/2012 00:17, Webley Silvernail wrote: On 23/02/2012 00:59, Webley Silvernail wrote: Hey Webley Approach II is the correct one. The problem is with the way you are adding your new content, which is presumably as a text string (in which case HTML::Element is correct to render it as text!

Re: Sending files efficiently with Net::SMTP

2012-02-23 Thread Igor Dovgiy
Argh, misunderstood the doc a bit. This line in my code: push @msg_content, "\r\n"; ... is redundant, the termination string will be added automatically by data() method. -- iD 2012/2/23 Igor Dovgiy > From the documentation (http://perldoc.perl.org/Net/SMTP.html) > ... > data ( [ DATA ] ) - i

Re: Sending files efficiently with Net::SMTP

2012-02-23 Thread Igor Dovgiy
>From the documentation (http://perldoc.perl.org/Net/SMTP.html) ... data ( [ DATA ] ) - initiate the sending of the data from the current message. DATA may be a reference to a list or a list. If specified the contents of DATA and a termination string ".\r\n"is sent to the server. And the result wil

Sending files efficiently with Net::SMTP

2012-02-23 Thread mailing lists
Hello all, I have a perl (Ver. 5.10.0) program running over an old machine which send messages with this code:     my $smtp = Net::SMTP->new($dstMailServer, Timeout=>10, Debug=>0,);     unless(defined($smtp)){     syslog LOG_INFO, "id:%s error: unable to connect with %s", $myid, $dstMailS

Re: perl and pattern

2012-02-23 Thread Igor Dovgiy
2012/2/23 Rob Dixon > > Negative numbers aside, it seems more straightforward to insist that > there are no non-digit numbers in the input, hence > That's definitely an option, but I'm not in favor of 'double negation' conditionals usually, as they might be confusing. For example, I use only wh

Re: Encoding angle brackets in HTML text nodes

2012-02-23 Thread Rob Dixon
On 23/02/2012 00:59, Webley Silvernail wrote: I have an HTML page that is updated automatically each day. I am using HTML::TreeBuilder to create and insert the new content. Most of the time, this works fine, but I've hit a snag when existing text nodes on the page includes a gt or lt symbol.

Encoding angle brackets in HTML text nodes

2012-02-23 Thread Webley Silvernail
I have an HTML page that is updated automatically each day. I am using HTML::TreeBuilder to create and insert the new content. Most of the time, this works fine, but I've hit a snag when existing text nodes on the page includes a gt or lt symbol. For example, I might have an existing element o