LWP::Simple::head($url) -- Return value

2010-10-31 Thread Jatin
that the return value of the head() method in a scalar context is TRUE , but what does the value returned by the server which is HTTP::Response=HASH(0x861cd00) signify ? 2. Why am i getting a warning message in the line 3 of the output ? Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr..

Re: This Perl code causing high cpu usage , Why ?

2010-10-30 Thread Jatin
do a single match in scalar context without /g but it will not scan forward for the next time. this is what caused your infinite loop. /g is very useful in scalar context when used in a loop. uri Got it , Thanks. Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: This Perl code causing high cpu usage , Why ?

2010-10-30 Thread Jatin
u can try this.. while ($catalog =~ /Perl/g) Regards Ashwin Thayyullathil Surendran #91 988732 Yes , That was the issue in the code , Though i must say it made me understand the regexp engine in a better way :) Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: This Perl code causing high cpu usage , Why ?

2010-10-30 Thread Jatin
On Saturday 30 October 2010 01:26 PM, Uri Guttman wrote: but you missed the important point. the engine will stop but the next time through the loop it will START at the beginning of the string. hence the infinite loop. [Jatin] Thanks Uri , This is a very important point that you have

Re: This Perl code causing high cpu usage , Why ?

2010-10-30 Thread Jatin
On Saturday 30 October 2010 01:11 PM, Uri Guttman wrote: yes. infinite loop. why did you remove the modifiers? [Jatin] I read about the perl regexp engine. In one of the statement i read that the engine stops matching once the pattern is found. so i had removed the modifiers and test if the

This Perl code causing high cpu usage , Why ?

2010-10-30 Thread Jatin
s $catalog take single string from and match for the pattern ? In this case i am under the impression that the entire value returned by the get() method is stored in the $catalog variable. Please correct me if i am wrong. Appreciate your response in this regard. Thanks Jatin -- To unsubsc

Re: Mailing list for LWP

2010-10-27 Thread Jatin
Thanks Brian. Thanks Jatin On Wednesday 27 October 2010 10:57 PM, Brian Fraser wrote: http://search.cpan.org/~gaas/libwww-perl-5.837/lib/LWP.pm <http://search.cpan.org/%7Egaas/libwww-perl-5.837/lib/LWP.pm> Apparently so; See the last line : ) Brian. -- To unsubscribe, e-mail: beg

Re: Good Perl Books

2010-09-24 Thread Jatin Davey
r response. I would make sure to post a new mail for any new topic. Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Web UI Automation

2010-09-24 Thread Jatin Davey
Hi I just learned the basics of the perl programming language. I would like to know if there are good books that can help me in further learning and achieving expertise in Web automation using perl. Appreciate your response in this regard. Thanks Jatin On 9/23/2010 9:10 PM, Jatin wrote

Web UI Automation

2010-09-23 Thread Jatin
automating user actions in the UI. So here i am with a few questions: -- Do we have any modules in perl that can help in automating the UI actions ? -- Does the LWP bundle help in automating all web protocols ? Appreciate your response in this regard. Thanks Jatin -- To unsubscribe, e-mail

Good books for System , Network Admin tasks with perl

2010-09-21 Thread Jatin Davey
Hi Could some suggest some good books to learn on these two areas where perl is used namely: System Administration Network Administration Appreciate your response in this regard. Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Callbacks

2010-09-09 Thread Jatin Davey
The-wanted-function [Jatin] Thanks Chas , I would definitely explore more on different modules available at CPAN , that is a great place. Appreciate your help in making me understand about Callbacks. Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional comman

Re: Callbacks

2010-09-09 Thread Jatin
The callback is printing the value of $File::Find::name (which, again, is set by the File::Find::find function before the callback is called). [Jatin] Chas , when you say that the File::Find's find method sets its name variable before the callback is called , Do you mean that this

Re: Callbacks

2010-09-09 Thread Jatin
On Thursday 09 September 2010 08:38 PM, Shawn H Corey wrote: On 10-09-09 10:59 AM, Chas. Owens wrote: $File::Find::name is a package variable from File::Find. $File::Find::name is a fully-qualified variable, just in case you're wondering what "fully qualified" means.

Re: Callbacks

2010-09-09 Thread Jatin
File::Find's interface is through its package variables. [Jatin] So my subroutine that i use with the File::Find's find method has access to the package variables ? Correct me if i am wrong. It is a very bad design and is much regretted, but there is nothing to do about it now.

Re: Callbacks

2010-09-09 Thread Jatin
Hi Jatin, A callback is a reference to a subroutine. [Jatin] if a callback is a reference to a subroutine then it can be stored in scalar variable to call that subroutine. Am i correct in my understanding ? This reference when passed around, allows other code to invoke it. File::Find&#

Callbacks

2010-09-09 Thread Jatin Davey
eading the following code to understand it but could not comprehend. *Code:* #!/usr/bin/perl use warnings; use strict; use File::Find; find ( \&callback, "/"); sub callback { print $File::Find::name, "\n"; } *End Of Code:* Thanks Jatin

Re: Traversing Hash printing two times

2010-09-02 Thread Jatin Davey
. uri Thank Uri , I will keep that in mind. Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Traversing Hash printing two times

2010-09-02 Thread Jatin Davey
that means. i don't need to see (nor does anyone else) my entire email again. Sure , I ll learn to do so. Hope this reply is fine. thanx, uri Thanks Jatin -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Traversing Hash printing two times

2010-09-02 Thread Jatin Davey
hs in $_ : @{$months{$_}} \n"; } and it worked fine. Thanks Uri. Thanks Jatin On 9/3/2010 10:47 AM, Uri Guttman wrote: "JD" == Jatin Davey writes: JD> #!/usr/bin/perl JD> use warnings; JD> use strict; very good to see those. JD> my @english = qw(

Traversing Hash printing two times

2010-09-02 Thread Jatin Davey
hen why do i get the values two times. Please explain me this. Thanks Jatin

Re: Imp

2010-08-31 Thread Jatin Davey
Thanks Shlomi. Thanks Jatin On 8/31/2010 2:32 PM, Shlomi Fish wrote: Hi Jatin, On Tuesday 31 August 2010 07:37:26 Jatin Davey wrote: Hi Shlomi How are these modules that you have mentioned when compared to some tools like JMeter and LoadRunner. I have never worked with either JMeter

Re: Imp

2010-08-30 Thread Jatin Davey
. Thanks Jatin On 8/30/2010 7:52 PM, Shlomi Fish wrote: Hi Jyoti, On Monday 30 August 2010 17:13:20 Jyoti wrote: HI everyone, Sorry about previous incomplete question. Yes, I am looking for CPAN modules to send network queries and get responses (HTTP queries.). To be more specific, these modules

Re: Question on Unless and Until

2010-08-29 Thread Jatin Davey
Thanks Jim I got the understanding from this sample code as well: #!/usr/bin/perl use warnings; use strict; print "Enter your age : "; unless ((my $age = ) < 18) { print "you can vote \n"; } Thanks Jatin On 8/30/2010 11:15 AM, Jim Gibson wrote: At 9:53 AM +0530 8/3

Question on Unless and Until

2010-08-29 Thread Jatin Davey
. Thanks Jatin