Re: pm for parsing HTML tags.

2007-10-09 Thread Jeff Pang
2007/10/10, Patrik Hasibuan <[EMAIL PROTECTED]>: > Dear my friends... > > Which pm can I use for parsing HTML tags? > Hi, Do you know CPAN.org?you can search it with any keywords you want at first. For your question,maybe HTML::Parser is suitable.see: http://search.cpan.org/~gaas/HTML-Parser-3.56

pm for parsing HTML tags.

2007-10-09 Thread Patrik Hasibuan
Dear my friends... Which pm can I use for parsing HTML tags? Thanks in advance. -- Patrik Hasibuan <[EMAIL PROTECTED]> Junior Programmer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: question about regex for selecting and copying the result into array.

2007-10-09 Thread Patrik Hasibuan
On Tue, 09 Oct 2007 13:29:53 -0700 "John W. Krahn" <[EMAIL PROTECTED]> wrote: PH>Dear John... > $_ = $kontenurl->gogeturl( $assprm{'kwnya'}, $urlnya, $nohal ); > print $_; > > But why not just: > > print $kontenurl->gogeturl( $assprm{'kwnya'}, $urlnya, $nohal ); PH>Because I want to put the res

Re: showmedo.com/videos

2007-10-09 Thread Tom Phoenix
On 10/9/07, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: > The Showmedo.com videos has only 4 parts only what about the rest of the > videos or Am i seeing only 4 videos only Did you have a question about Perl? Perhaps you sent this question to the wrong list. Or perhaps it's not even a question; i

Re: Tony or Anthony

2007-10-09 Thread Jeff Pang
2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > No need for (), so you can write: > > m/tony|anthony/i > or, /tony/i || /anthony/i this is faster than /tony|anthony/i. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Tony or Anthony

2007-10-09 Thread Dr.Ruud
yitzle schreef: > /(tony|anthony)/i > /(?:tony|anthony)/i No need for (), so you can write: m/tony|anthony/i -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Tony or Anthony

2007-10-09 Thread yitzle
/(tony|anthony)/i /(?:tony|anthony)/i This RegEx will locate a tony, Tony, TONY, Anthony, etc (case insensitive) anywhere in the string. Is that what you need? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Tony or Anthony

2007-10-09 Thread John W. Krahn
newBee wrote: Hi Guys... Hello, I am new to regular expression and perl. I want right and regular expression to catch Tony or Anthony so I did it something like this.. [tony?anthony]. It will be great if some could tell me how to optimize this to good regular expression. I am writing this in

Tony or Anthony

2007-10-09 Thread newBee
Hi Guys... I am new to regular expression and perl. I want right and regular expression to catch Tony or Anthony so I did it something like this.. [tony?anthony]. It will be great if some could tell me how to optimize this to good regular expression. I am writing this in perl. Thanks in advance.

Re: question about regex for selecting and copying the result into array.

2007-10-09 Thread John W. Krahn
Patrik Hasibuan wrote: Dear my friends... Hello, I want to take all the strings between "" and "" and put it into array. I do this way but it does not work properly: Put these two lines at the start of your program: use warnings; use strict; $kontenurl=eksekusi->baru(); eksekusi is

question about regex for selecting and copying the result into array.

2007-10-09 Thread Patrik Hasibuan
Dear my friends... I want to take all the strings between "" and "" and put it into array. I do this way but it does not work properly: $kontenurl=eksekusi->baru(); $_=$kontenurl->gogeturl("$assprm{'kwnya'}", "$urlnya", "$nohal"); print "$_"; print ""; print ""; $i=0; while (<>){ @resul

beginners@perl.org

2007-10-09 Thread Patrik Hasibuan
You've solved my problem, Jeff. Thank youThank you very much. I really appreciate your help. On Mon, 8 Oct 2007 10:20:00 +0800 "Jeff Pang" <[EMAIL PROTECTED]> wrote: > 2007/10/8, Patrik Hasibuan <[EMAIL PROTECTED]>: > > > But if I retrieve a little bit more complicated url such as > > "ht

RE: How to kill process in Windows

2007-10-09 Thread Manoj
I wanted this to schedule this job daily. The process explorer is amazing one. Try to know more about Process Explorer. Thanks Manoj -Original Message- From: terran forge [mailto:[EMAIL PROTECTED] Sent: Sunday, October 07, 2007 10:03 PM To: [EMAIL PROTECTED] Cc: 'Perl Beginners' Subjec

RE: Load Test a web site

2007-10-09 Thread Bob McConnell
> -Original Message- > From: Ram Prasad [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 09, 2007 9:00 AM > To: beginners@perl.org > Subject: Re: Load Test a web site > > On Oct 9, 12:54 pm, [EMAIL PROTECTED] (Jim Coyle) wrote: > > Hi, > > > > I am an beginner using Perl. > > I need to

Re: Load Test a web site

2007-10-09 Thread Ram Prasad
On Oct 9, 12:54 pm, [EMAIL PROTECTED] (Jim Coyle) wrote: > Hi, > > I am an beginner using Perl. > I need to load test a new web site - does anyone have some very basic > code that I could re-use? > Ideally I'm looking for something that simulates multiple users hitting > the web site at the same ti

Re: search replace one liner problem

2007-10-09 Thread jrpfinch
Thanks very much - this works Jon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Learning Perl

2007-10-09 Thread Francisco Valladolid
Hi. On 10/9/07, Paul Lalli <[EMAIL PROTECTED]> wrote: > > On Oct 9, 9:17 am, [EMAIL PROTECTED] (Bob McConnell) wrote: > > My experience was that "Learning Perl" was the introduction that > > prepared me to tackle "Programming Perl". That combination gave me a > > very good general understanding of

Re: Learning Perl

2007-10-09 Thread Paul Lalli
On Oct 9, 9:17 am, [EMAIL PROTECTED] (Bob McConnell) wrote: > My experience was that "Learning Perl" was the introduction that > prepared me to tackle "Programming Perl". That combination gave me a > very good general understanding of the language and how to apply it. > After that, there are a numb

Re: Hash receive Array

2007-10-09 Thread Paul Lalli
On Oct 9, 10:09 am, [EMAIL PROTECTED] (Rodrigo Tavares) wrote: > I created a hash with some elements and keys. > The hash must receive a array. What does "receive" an array mean? > Can I do it ? You can store references to arrays in a hash, but not arrays themselves: my @array = (1, 2, 3); my

showmedo.com/videos

2007-10-09 Thread Kaushal Shriyan
Hi The Showmedo.com videos has only 4 parts only what about the rest of the videos or Am i seeing only 4 videos only Thanks and Regards Kaushal

RE: Hash receive Array

2007-10-09 Thread Andrew Curry
In what sense? So you mean can a hash reference an array 'a' => [EMAIL PROTECTED] ? -Original Message- From: Rodrigo Tavares [mailto:[EMAIL PROTECTED] Sent: 09 October 2007 15:09 To: beginners@perl.org Subject: Hash receive Array Hello, I created a hash with some elements and keys.

Re: Hash receive Array

2007-10-09 Thread Beginner
On 9 Oct 2007 at 11:09, Rodrigo Tavares wrote: Hi > Hello, > > I created a hash with some elements and keys. > The hash must receive a array. > > Can I do it ? yes. I think this will work. $hash{'myarray'} = [1, 2, 3]; or $hash{'myarray'} = [EMAIL PROTECTED]; and I am sure there are l

Hash receive Array

2007-10-09 Thread Rodrigo Tavares
Hello, I created a hash with some elements and keys. The hash must receive a array. Can I do it ? best regards, Faria Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento! http://br.mail.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: Learning Perl

2007-10-09 Thread Bob McConnell
> -Original Message- > From: kilaru rajeev [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 09, 2007 8:50 AM > To: Paul Lalli > Cc: beginners@perl.org > Subject: Re: Learning Perl > > I think "Learning perl" is a better choice as per my > knowledge. You can go > for the remaining after

Re: Storing a subroutine pointer inside a variable?

2007-10-09 Thread yitzle
On 10/9/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > On 10/9/07, yitzle <[EMAIL PROTECTED]> wrote: > > On 10/9/07, Beginner <[EMAIL PROTECTED]> wrote: > > > Can someone explain why there is a 4th, undefined variable being > > > declared in test? It appears to work it too. > > > > > > sub test { > >

Re: Storing a subroutine pointer inside a variable?

2007-10-09 Thread Chas. Owens
On 10/9/07, yitzle <[EMAIL PROTECTED]> wrote: > On 10/9/07, Beginner <[EMAIL PROTECTED]> wrote: > > Can someone explain why there is a 4th, undefined variable being > > declared in test? It appears to work it too. > > > > sub test { > > my ($function, $description, $var) = @_ > > ... > > > > I'm s

Re: Storing a subroutine pointer inside a variable?

2007-10-09 Thread yitzle
On 10/9/07, Beginner <[EMAIL PROTECTED]> wrote: > Can someone explain why there is a 4th, undefined variable being > declared in test? It appears to work it too. > > sub test { > my ($function, $description, $var) = @_ > ... > > I'm sure there is a reason for it but I can't see it. > Thanx, > Dp.

Re: Learning Perl

2007-10-09 Thread kilaru rajeev
I think "Learning perl" is a better choice as per my knowledge. You can go for the remaining after this. Thanks, Rajeev Kilaru On 10/9/07, Paul Lalli <[EMAIL PROTECTED]> wrote: > > On Oct 9, 7:28 am, [EMAIL PROTECTED] (Bhargav Purohit) wrote: > > Instead to of starting directly with Camel Book(L

Re: Learning Perl

2007-10-09 Thread Paul Lalli
On Oct 9, 7:28 am, [EMAIL PROTECTED] (Bhargav Purohit) wrote: > Instead to of starting directly with Camel Book(Learning Perl) The Camel Book is Programming Perl. It is a reference. Effectively a paper-back version of the perldoc documentation you mentioned. Learning Perl is known as the Llama

RE: Learning Perl

2007-10-09 Thread Purohit, Bhargav
Instead to of starting directly with Camel Book(Learning Perl) I would suggest to see the perldoc first and then move to book as perldoc gives more understanding in simple way (learning perl is nothing but just the rearrnaged form of perldoc) How to access perldoc Type perldoc from your l

Re: Storing a subroutine pointer inside a variable?

2007-10-09 Thread Jeff Pang
2007/10/9, Beginner <[EMAIL PROTECTED]>: > Can someone explain why there is a 4th, undefined variable being > declared in test? It appears to work it too. > There is not any reason really.Just the OP's thought,maybe he need that 4th argument for his use. -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: Storing a subroutine pointer inside a variable?

2007-10-09 Thread Beginner
On 9 Oct 2007 at 9:01, Jeff Pang wrote: > 2007/10/9, yitzle <[EMAIL PROTECTED]>: > sub test { > my ($function, $description, $var, undef) = @_; > print $description . ": "; > print $function->($var) ? "Yes\n" : "No\n"; > } Can someone explain why there is a 4th, undefined variable being decl

Re: Load Test a web site

2007-10-09 Thread Jeff Pang
Why not use apache's ab? But once I did write a simple script for testing our web applications,hope it's a little help to you. #!/usr/bin/perl use strict; use LWP::UserAgent; use Encode; for (1..100) { unless (fork) { test_site_com() for 1..10; exit 0; } } sub test_site_c

Load Test a web site

2007-10-09 Thread Coyle, Jim
Hi, I am an beginner using Perl. I need to load test a new web site - does anyone have some very basic code that I could re-use? Ideally I'm looking for something that simulates multiple users hitting the web site at the same time. Yours gratefully ... - Jim