Re: Good Perl Books

2010-09-24 Thread Jatin Davey
I've been collecting a list of books and many other resources on the Perl Beginners' Site: http://perl-begin.org/ Especially of note are: 1. http://perl-begin.org/books/advanced/#pbp - Perl Best Practices by Damian Conway. 2. http://github.com/chromatic/modern_perl_book - chromatic's "Modern

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: H

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: beginne

Re: Callbacks

2010-09-09 Thread Jatin Davey
Yes, if no_chdir is not set, then $_ is the current file's name with no path $File::Find::name is the current file's name with the path $File::Find::dir is the path to the current file You may want to read the [perldoc File::Find][0]. [0]: http://perldoc.perl.org/File/Find.html#The-wanted-f

Callbacks

2010-09-09 Thread Jatin Davey
Hi I am a newbie to Perl , I was reading through one of the beginner level books on perl. I did not understand the concept of "Callbacks" and i have the following questions on it: 1. What are they ? 2. Why do we need them ? 3. What useful purpose do they achieve ? I was reading the follow

Re: Traversing Hash printing two times

2010-09-02 Thread Jatin Davey
yes, you can read the code and see what the variable is for. $_ is useful in some situations but not for foreach loops and similar things. names are important in code and $_ has no name. you lose the opportunity to tell the reader of the code what the variable contains and what it is used for.

Re: Traversing Hash printing two times

2010-09-02 Thread Jatin Davey
but it isn't as good as my code. don't use $_ unless you have to (as in map/grep). it is much better to use named variables. Any reason to use named variables than to use the default variable ($_) ? and please learn to edit quoted emails and to bottom post. you can google for what that means.

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
Hi I am a newbie to Perl , I have this piece of code : *CODE:* #!/usr/bin/perl use warnings; use strict; my @english = qw(january february march april may june july); my @french = qw(janvier fverier mars avril mai juin juily); my %months; my $eng_ref; my $fre_ref; $eng_ref = \...@english; $

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
Hi Shlomi How are these modules that you have mentioned when compared to some tools like JMeter and LoadRunner. Are they similar in terms of acting like client to send the protocol requests ? Please let me know if i am incorrect in my understanding. Would be glad to learn about it. Than

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
Hi All I a newbie to perl. Reading through some of its basics on if constructs , while constructs and so i also found a the unless and until constructs. let me take the if construct , basically it is like this : if () { .} now in the above construct if the condition evaluates to *true*