Accessing . NET Webserivices

2009-08-14 Thread perl pra
Hi all, I have a webserives built in .NET and WSE authentication which i wanted to consume through perlclient.Below are the details. I have a windows webservice, Now i wanted to test these services, I wanted to consume them with perl client, These webservices are WSSE authenticated.I have tried

Re: ||= operator

2009-08-14 Thread Chas. Owens
On Fri, Aug 14, 2009 at 18:00, Noah Garrett Wallach wrote: snip > we all found that in the docs.   based on the information you posted. what > does "||="  do? snip $x ||= $y; is the same as $x = $x || $y; and that performs a logical or operation that returns $x if $x is true or $y if $x is fals

Re: Coding best practices

2009-08-14 Thread Jenda Krynicky
From: "Shawn H. Corey" > I use Data::Dumper a lot, so most of my debugging statements have > "Dumper" in them, making them easy to find. For those that don't, I add > "# TEMPORARY" at the end. And I leave them behind; I just put a "#" in > front of them. :) I tend to not indent them. So they

Re: Coding best practices

2009-08-14 Thread Randal L. Schwartz
> "Steve" == Steve Bertrand writes: Steve> Interesting. So, print is a debugging tool that does a complete full Steve> circle. Many on the list have helped me with using different debug Steve> techniques which have greatly helped me advance my understanding of what Steve> my code is actually

Re: Coding best practices

2009-08-14 Thread Randal L. Schwartz
> "Steve" == Steve Bertrand writes: SB> - what in God's name is Abigail's last name? >> >> '' (the answer to your question) Steve> I knew pretty much for fact that this would be the answer, but honestly, Steve> I wanted to know how you would write the empty string, without thinking Steve> a

Re: Improvements to http://perl-begin.org/

2009-08-14 Thread Offer Kaye
On Thu, Aug 13, 2009 at 11:06 PM, Steve Fink wrote: > > I'm referring to http://perl-begin.org/style.css line 40 (according to > Firebug), specifically this CSS: > >  #page-container { ... width:780px; } > > Bad! > I have to say, the site looks very good visually - I haven't looked at the contents

Re: Coding best practices

2009-08-14 Thread Shawn H. Corey
Chas. Owens wrote: On Fri, Aug 14, 2009 at 10:20, Shawn H. Corey wrote: snip Komodo doesn't work on my machine and since it's propriety, I can't get its source to compile it. snip Odd, it works just fine on my OS X box, my Linux box, and I hear it works in MS Windows. You must be using a flav

Re: Coding best practices

2009-08-14 Thread Shawn H. Corey
Chas. Owens wrote: On Fri, Aug 14, 2009 at 09:59, Shawn H. Corey wrote: Chas. Owens wrote: Are you using a visual debugger or a commandline debugger? Command line, they didn't have visual debuggers back then. :) snip Why, back when I was a lad we had to debug things by checking the [waveleng

Re: CPAN issues

2009-08-14 Thread Philip Potter
2009/8/14 Steve Bertrand : > Philip Potter wrote: >> Dear all, >> >> I'm having trouble installing stuff on CPAN. I'm using the cpan script: >> cpan script version 1.03 >> CPAN.pm version 1.7602 >> >> It tells me there's a new CPAN.pm available, so I type install >> Bundle::CPAN. After a lot of tex

Re: Coding best practices

2009-08-14 Thread Chas. Owens
On Fri, Aug 14, 2009 at 10:20, Shawn H. Corey wrote: snip > Komodo doesn't work on my machine and since it's propriety, I can't get its > source to compile it. snip Odd, it works just fine on my OS X box, my Linux box, and I hear it works in MS Windows. You must be using a flavor of BSD other tha

Re: Coding best practices

2009-08-14 Thread Chas. Owens
On Fri, Aug 14, 2009 at 09:59, Shawn H. Corey wrote: > Chas. Owens wrote: >> >> Are you using a visual debugger or a commandline debugger? > > Command line, they didn't have visual debuggers back then. :) snip Why, back when I was a lad we had to debug things by checking the [wavelength of the RF

Re: Coding best practices

2009-08-14 Thread Shawn H. Corey
Chas. Owens wrote: Are you using a visual debugger or a commandline debugger? I find this makes all of the difference in the world. Try downloading a trial version of [Komodo IDE][1] or using [ddd][2]. I detest IDEs, but visual debuggers are incredibly more useful than commandline debuggers, a

Re: Coding best practices

2009-08-14 Thread Shawn H. Corey
Chas. Owens wrote: Are you using a visual debugger or a commandline debugger? Command line, they didn't have visual debuggers back then. :) -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it

Re: HTML::TreeBuilder encode symbols as html entities

2009-08-14 Thread Roman Makurin
On Fri, Aug 14, 2009 at 5:35 PM, Shawn H. Corey wrote: > Roman Makurin wrote: >> >> dump result is html encoded entities: >> >> @0.1.5.1 >>  > title="Ссылка ">@0.1.5.1.0 >> >> all html entities are valid unicode code points of symbols. But why >> HTML::TreeBuilder convert symbols to entities ? > >

Re: Coding best practices

2009-08-14 Thread Chas. Owens
On Fri, Aug 14, 2009 at 09:18, Shawn H. Corey wrote: snip > The last time I used a debugger was on a large C project. For small > programs and unit testing, it was fine, but when things went over 2000 > lines, it became increasingly frustrating to use. Of course, print > statements have their lim

Re: HTML::TreeBuilder encode symbols as html entities

2009-08-14 Thread Shawn H. Corey
Roman Makurin wrote: dump result is html encoded entities: @0.1.5.1 @0.1.5.1.0 all html entities are valid unicode code points of symbols. But why HTML::TreeBuilder convert symbols to entities ? Because some browsers do not understand Unicode. Or they didn't. If I just do print $conten

Re: Coding best practices

2009-08-14 Thread Shawn H. Corey
Shlomi Fish wrote: My recent impression of most Perl programmers has been the opposite - most of them have been too lazy or unmotivated to learn about the perl -d flag (or similar interactive debuggers), and are always using print's or going on IRC asking "What is wrong with this code?" I find

HTML::TreeBuilder encode symbols as html entities

2009-08-14 Thread Roman Makurin
Hi All. I have a problem with HTML::TreeBuilder. Here is sample code without any error checking: $ua = new LWP::UserAgent -timeout=>10; $resp = $ua->get($url); $content = decode('encoding_of_web_page', $resp->content); decode_entities($content); $r = HTML::TreeBuilder->new_from_content($conten

Re: Coding best practices

2009-08-14 Thread Peter Scott
On Fri, 14 Aug 2009 00:52:24 -0400, Chas. Owens wrote: > I have seen the opposite: too many coders sticking with print instead of > picking up a debugger when the situation called for one. I tend to > debug with a combination of looking at the code, logs, and print > statements, but a good visual

Re: CPAN issues

2009-08-14 Thread Steve Bertrand
Philip Potter wrote: > Dear all, > > I'm having trouble installing stuff on CPAN. I'm using the cpan script: > cpan script version 1.03 > CPAN.pm version 1.7602 > > It tells me there's a new CPAN.pm available, so I type install > Bundle::CPAN. After a lot of text, including some requests for > de

CPAN issues

2009-08-14 Thread Philip Potter
Dear all, I'm having trouble installing stuff on CPAN. I'm using the cpan script: cpan script version 1.03 CPAN.pm version 1.7602 It tells me there's a new CPAN.pm available, so I type install Bundle::CPAN. After a lot of text, including some requests for dependencies, I get: Recursive dependenc