Re: The last element

2005-05-07 Thread Offer Kaye
On 5/8/05, amr wrote: > How can I call the last element in the array? > > I try the pop and it does the job but I think there is another way? > if the array is called "@array", the last element can be called either using: $array[$#array] or $array[-1] Read: http://perldoc.perl.org/perldata.html

Mechanize, testing and timing.

2005-05-07 Thread Chris
Greetings, We have written a web application utilizing mod_perl and MySQL. We have also written testing scripts using WWW::Mechanize that simulate a user. These scripts were first developed as test scripts to ensure actions were performed correctly, etc. We would now like to take these scripts

Re: The last element

2005-05-07 Thread Gavin Henry
On Saturday 07 May 2005 23:05, Peter Rabbitson wrote: > On Sat, May 07, 2005 at 04:13:12PM -0700, amr wrote: > > How can I call the last element in the array? > > > > I try the pop and it does the job but I think there is another way? > > If > my @a = (1, 2, 3, 4); > then: > > my $last

Re: Where will I find perl scripts

2005-05-07 Thread John W. Krahn
Charles K. Clarkson wrote: Edward WIJAYA wrote: : : On Sat, 7 May 2005 14:50:37 -0500, Charles K. Clarkson : <[EMAIL PROTECTED]> wrote: : : : plain scary. (Wait, I think _she_ wrote that module, too. : : Just stay away from _her_. :) : : _HE_ you mean! :-) : : http://

RE: Where will I find perl scripts

2005-05-07 Thread Charles K. Clarkson
John W. Krahn wrote: : Does that happen to you a lot? ;-) I'd rather not talk about it, thank you very much. Charles "who wishes to be alone, now" Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: Where will I find perl scripts

2005-05-07 Thread Charles K. Clarkson
Edward WIJAYA wrote: : : On Sat, 7 May 2005 14:50:37 -0500, Charles K. Clarkson : <[EMAIL PROTECTED]> wrote: : : : plain scary. (Wait, I think _she_ wrote that module, too. : : Just stay away from _her_. :) : : _HE_ you mean! :-) : : http://www.abigail.nl/ Ha!

Re: ActiveState Comodo is not stopped on beak points

2005-05-07 Thread Dan
Alex Lisbaron wrote: Hello All I use ActiveState Comodo 3.1 Professional. Till now everything worked ok, but now I have a problem: debugger (F5) is not stopped on break points! What I do wrong? Thank you in advance Alex You could try clearing all break points, closing all files, re-opening them

Re: Where will I find perl scripts

2005-05-07 Thread Edward WIJAYA
Charles, On Sat, 7 May 2005 14:50:37 -0500, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: plain scary. (Wait, I think _she_ wrote that module, too. Just stay away from _her_. :) _HE_ you mean! :-) http://www.abigail.nl/ -- Regards, Edward WIJAYA Singapore -- To unsubscribe, e-mail: [EMAIL PROTE

Re: The last element

2005-05-07 Thread Peter Rabbitson
On Sat, May 07, 2005 at 04:13:12PM -0700, amr wrote: > How can I call the last element in the array? > > I try the pop and it does the job but I think there is another way? > If my @a = (1, 2, 3, 4); then: my $last = pop @a; is the same as my $last = $a[-1]; and

RE: The last element

2005-05-07 Thread Charles K. Clarkson
Ricardo SIGNES wrote: : * amr <[EMAIL PROTECTED]> [2005-05-07T19:45:56] : : Thanks it was very useful. : : Now, I need to do the same with sorted hash array. Can I? : : "sorted hash array" is not clear, to me. Do you mean you've done : this: sort keys %hash : ? :

Re: The last element

2005-05-07 Thread Gavin Henry
On Saturday 07 May 2005 20:56, John W. Krahn wrote: > Gavin Henry wrote: > > On Sunday 08 May 2005 00:13, amr wrote: > >>How can I call the last element in the array? > >> > >>I try the pop and it does the job but I think there is another way? > > > > Of course, TMTOWTDI (http://catb.org/~esr/jargo

Re: The last element

2005-05-07 Thread John W. Krahn
Gavin Henry wrote: On Sunday 08 May 2005 00:13, amr wrote: How can I call the last element in the array? I try the pop and it does the job but I think there is another way? Of course, TMTOWTDI (http://catb.org/~esr/jargon/html/T/TMTOWTDI.html) $ARRAY[$#ARRAY--] Oh wow. Did you try that? You do re

RE: Where will I find perl scripts

2005-05-07 Thread Charles K. Clarkson
Tielman Koekemoer (TNE) wrote: : I think I'm like most people learn Perl easier when examining other : "guru's" scripts. Where is the best place on the net to find Perl : scripts that do everything, from doing pattern matching in arrays to : making coffee? Check out

Re: The last element

2005-05-07 Thread Gavin Henry
On Sunday 08 May 2005 00:13, amr wrote: > How can I call the last element in the array? > > I try the pop and it does the job but I think there is another way? Of course, TMTOWTDI (http://catb.org/~esr/jargon/html/T/TMTOWTDI.html) $ARRAY[$#ARRAY--] See: http://perldoc.perl.org/functions/pop.ht

Re: The last element

2005-05-07 Thread Ing. Branislav Gerzo
amr [a], on Saturday, May 7, 2005 at 16:45 (-0700) typed the following: a> Now, I need to do the same with sorted hash array. Can I? you can do everything. But give us example of source data dump. -- ...m8s, cu l8r, Brano. [Home: A place teenagers stay while the car is repaired.] -- To u

Re: The last element

2005-05-07 Thread bright true
$array[-1] On 5/7/05, amr <[EMAIL PROTECTED]> wrote: > > How can I call the last element in the array? > > I try the pop and it does the job but I think there is another way? > >

Re: The last element

2005-05-07 Thread Ricardo SIGNES
* amr <[EMAIL PROTECTED]> [2005-05-07T19:45:56] > Thanks it was very useful. > Now, I need to do the same with sorted hash array. Can I? "sorted hash array" is not clear, to me. Do you mean you've done this: sort keys %hash ? If so, just reverse the sort and use the first element, or ass

RE: The last element

2005-05-07 Thread amr
Thanks it was very useful. Now, I need to do the same with sorted hash array. Can I? Thanks Amr -Original Message- From: Ing. Branislav Gerzo [mailto:[EMAIL PROTECTED] Sent: Saturday, May 07, 2005 6:16 AM To: beginners@perl.org Subject: Re: The last element amr [a], on Saturd

Re: The last element

2005-05-07 Thread Ramprasad A Padmanabhan
On Sun, 2005-05-08 at 04:43, amr wrote: > How can I call the last element in the array? > > I try the pop and it does the job but I think there is another way? > > > $array[-1] HTH Ram -- Netcore Solutions Pvt. Ltd. Website: http://

Re: The last element

2005-05-07 Thread Ing. Branislav Gerzo
amr [a], on Saturday, May 7, 2005 at 16:13 (-0700) thinks about: a> I try the pop and it does the job but I think there is another way? here are some examples comes to my mind: use strict; use warnings; my @list = 1 .. 10; print $list[-1], "\n"; print $list[$#list], "\n"; print [EMAIL PROTECTE

The last element

2005-05-07 Thread amr
How can I call the last element in the array? I try the pop and it does the job but I think there is another way?

browser and/or script problem?

2005-05-07 Thread Graeme McLaren
Hi folks, I've got a strange problem where I'm getting the value "" on a form element and when I view the source on the page it contains values whic I have set in the module, at the moment they are undefined/empty string (browsing with firefox). On IE and Netscape for some reason the passwo

ActiveState Comodo is not stopped on beak points

2005-05-07 Thread Alex Lisbaron
Hello All I use ActiveState Comodo 3.1 Professional. Till now everything worked ok, but now I have a problem: debugger (F5) is not stopped on break points! What I do wrong? Thank you in advance Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Script critique?

2005-05-07 Thread John W. Krahn
Jason Balicki wrote: Hello, Hello, I have several locations with a hardware VPN device and I've set them up to log to a central logging server. Some of the managers of these facilities would like to have a report showing who's using the VPN and when. I've written a script that does that. It works,