Re: why while loop 6 times when @data have only 3 elements

2009-02-20 Thread John W. Krahn
itshardtogetone wrote: Hi, Hello, Looking at the script below, why does the while function loop 6 times instead of 3 times when @data have only 3 elements and I thought the output should be:- 1 $_ = aaa1 2 $_ = bbb2 3 $_ = ccc3 Thanks # #!/usr/bi

Re: why while loop 6 times when @data have only 3 elements

2009-02-20 Thread Chas. Owens
On Fri, Feb 20, 2009 at 23:22, Chas. Owens wrote: > On Fri, Feb 20, 2009 at 22:56, itshardtogetone > wrote: >> Hi, >> Looking at the script below, why does the while function loop 6 times >> instead of 3 times when @data have only 3 elements and >> I thought the output should be:- >> 1 $_ = aaa

Re: why while loop 6 times when @data have only 3 elements

2009-02-20 Thread Chas. Owens
On Fri, Feb 20, 2009 at 22:56, itshardtogetone wrote: > Hi, > Looking at the script below, why does the while function loop 6 times instead > of 3 times when @data have only 3 elements and > I thought the output should be:- > 1 $_ = aaa1 > 2 $_ = bbb2 > 3 $_ = ccc3 > > Thanks > >

why while loop 6 times when @data have only 3 elements

2009-02-20 Thread itshardtogetone
Hi, Looking at the script below, why does the while function loop 6 times instead of 3 times when @data have only 3 elements and I thought the output should be:- 1 $_ = aaa1 2 $_ = bbb2 3 $_ = ccc3 Thanks # #!/usr/bin/perl use strict; use warnings; my

Re: Reading 2 array lists

2009-02-20 Thread Telemachus
On Fri Feb 20 2009 @ 1:29, mrito...@gmail.com wrote: > I have that one > > I need one for perl dummies like me If you want an alternative, take a look at Beginning Perl by Simon Cozens: http://www.perl.org/books/beginning-perl/ It's written for Perl 5.6 (I think), but the core of the syntax sh

Re: Error in different perl scipt file - Getting output in a sing .pl file not in other .pl files

2009-02-20 Thread Dermot
2009/2/20 prasath_linux : > Dear Friends, > >I am beginner & i am new in perl scripting language, currently i > using perl 5.8.8 version. I installed DBI module through CPAN to > connect different database. Yes i got output by connecting to the > database. > > My problem is : > >My first p

Re: Reading 2 array lists

2009-02-20 Thread mritorto
I have that one I need one for perl dummies like me Lol --Original Message-- From: Dermot To: mritorto Cc: beginners@perl.org Subject: Re: Reading 2 array lists Sent: Feb 20, 2009 5:28 AM 2009/2/19 mritorto : > guys > > more questions > > > isn't built in. I am using active state perl >

Re: Error in different perl scipt file - Getting output in a sing .pl file not in other .pl files

2009-02-20 Thread pdfeeny
prasath_linux wrote on 02/20/2009 06:52:43 AM: > Dear Friends, > > I am beginner & i am new in perl scripting language, currently i > using perl 5.8.8 version. I installed DBI module through CPAN to > connect different database. Yes i got output by connecting to the > database. > > My prob

Re: Error in different perl scipt file - Getting output in a sing .pl file not in other .pl files

2009-02-20 Thread Gunnar Hjalmarsson
prasath_linux wrote: "Internet Server Error" The server encountered an internal error or misconfiguration and was unable to complete your request. Will you please tell how to solve this error. perldoc -q 500 -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To uns

Error in different perl scipt file - Getting output in a sing .pl file not in other .pl files

2009-02-20 Thread prasath_linux
Dear Friends, I am beginner & i am new in perl scripting language, currently i using perl 5.8.8 version. I installed DBI module through CPAN to connect different database. Yes i got output by connecting to the database. My problem is : My first perl script filename is : first.pl My

Re: Reading 2 array lists

2009-02-20 Thread Telemachus
On Fri Feb 20 2009 @ 10:28, Dermot wrote: > 2009/2/19 mritorto : > > guys > > > > more questions > > > > > > isn't built in. I am using active state perl > > > > > > can u recommend any good perl books the ones I have aren't make for > > beginers like perl cookbook or perl in a nutshell > > I'd s

Re: Bundle-Expect

2009-02-20 Thread Telemachus
On Fri Feb 20 2009 @ 3:02, ramesh.marimu...@wipro.com wrote: > > Thanks Thomas. Actually when is give "use Expect;", the error I get is "Can't > locate Expect.pm in @INC ...". Is there anything that I'm missing or should I > check something? > > -ramesh As a start, you can run this command to

Re: Reading 2 array lists

2009-02-20 Thread Dermot
2009/2/19 mritorto : > guys > > more questions > > > isn't built in. I am using active state perl > > > can u recommend any good perl books the ones I have aren't make for > beginers like perl cookbook or perl in a nutshell I'd say start with this. Learning Perl (4th edition) ISBN0-596-10

Re: FW: Bundle-Expect

2009-02-20 Thread pablo
> > Hi All, > > Another thing I found is, when I try the command "perldoc Bundle::Expect", it > displays the documentation. So it should be installed. But when I try with > "perldoc Expect", nothing is displayed. Is there any problem in the > installation? Is there any way to install? > > Reg

FW: Bundle-Expect

2009-02-20 Thread ramesh.marimuthu
Hi All, Another thing I found is, when I try the command "perldoc Bundle::Expect", it displays the documentation. So it should be installed. But when I try with "perldoc Expect", nothing is displayed. Is there any problem in the installation? Is there any way to install? Regards, -ramesh --

RE: Bundle-Expect

2009-02-20 Thread ramesh.marimuthu
Thanks Thomas. Actually when is give "use Expect;", the error I get is "Can't locate Expect.pm in @INC ...". Is there anything that I'm missing or should I check something? -ramesh -Original Message- From: Thomas Bätzler [mailto:t.baetz...@bringe.com] Sent: Friday, February 20, 2009 2

Re: breaking-apart and printing an input file

2009-02-20 Thread pablo
> > Your data is perfect for the paragraph mode* of readline: > Ahh, I forgot about paragraph mode. > #!/usr/bin/perl > > use strict; > use warnings; > > my $user = shift; > my $regex = qr/\A$user/; > > local $/ = ''; > while (my $record = ) { > chomp $record; > if ($record =~ /$

AW: Bundle-Expect

2009-02-20 Thread Thomas Bätzler
Hi, ramesh.marimu...@wipro.com asked: > I'm totally new to Perl. I tried installing a module Bundle-Expect.pm. > Also I called inside my Perl script by "Use Bundle::Expect". While A bundle is not a module, it's a whole collection of related modules. In this case I suspect you'll probably want to

Re: how to do this in one line (with map?)

2009-02-20 Thread pablo
On Wed, Feb 18, 2009 at 10:12:44AM -0800, John W. Krahn wrote: > > my @ids = map /^\w/ ? (split)[0] : (), `mailq`; > thanks, this was just what I was looking for. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.

Re: Test::HTTPStatus

2009-02-20 Thread Gunnar Hjalmarsson
Ganesh Babu N wrote: I am testing the weblinks for connectivity using Test::HTTPStatus module. I could able to test 187 and in those 165 links are success and 22 links are failed. When I test manually by entering the weblink in the browser out of 22, 5 weblinks are working fine. I am not sure wh

Bundle-Expect

2009-02-20 Thread ramesh.marimuthu
Hi All, I'm totally new to Perl. I tried installing a module Bundle-Expect.pm. Also I called inside my Perl script by "Use Bundle::Expect". While executing this script, I got an error "Can't locate Bundle/Expect.pm in @INC ...". I can't find what I'm missing. Is there any mistake in Bundle-Expect.