OT: Email syntax validation

2004-10-02 Thread Gunnar Hjalmarsson
As a result of the thread "Check for valid email address", I have modified my emailsyntax() function to better conform to RFC 822. After all, I wouldn't like e.g. my contact form module to reject Randal when he has changed addresses. ;-) I skipped the specification's "domain-literal" alternativ

Re: Becoming Disenheartened - Everyone talks about Python and says

2004-10-02 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (JupiterHost.Net) writes: >Nicolay A. Vasiliev wrote: > >> I didn't mean CGI, only standart types. > >Everyone is just using your own examples as examples of why your >arguments are moot :) > >That's the last .02 I'm spending on this crazy thread

Re: RE : Becoming Disenheartened - Everyone talks about Python and says Perl is old news.

2004-10-02 Thread Jenda Krynicky
From: "Nicolay A. Vasiliev" <[EMAIL PROTECTED]> > I MEANT STANDART TYPES. ARE YOU ABLE TO SEE THE DIFFERENCE? If you > assign the value for string variable it automaticaly gets the number > of methods belonging to String object. And as an example I wrote the > s.replace statement.. The similar appr

Re: RE : Becoming Disenheartened - Everyone talks about Python and says Perl is old news.

2004-10-02 Thread Nicolay A. Vasiliev
Dear friend! I MEANT STANDART TYPES. ARE YOU ABLE TO SEE THE DIFFERENCE? If you assign the value for string variable it automaticaly gets the number of methods belonging to String object. And as an example I wrote the s.replace statement.. The similar approach has Ruby. Of course, if you need m

RE : Becoming Disenheartened - Everyone talks about Python and says Perl is old news.

2004-10-02 Thread Jose Nyimi
> -Message d'origine- > De : Nicolay A. Vasiliev [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 1 octobre 2004 22:39 > À : Perl Beginners List > Objet : Re: Becoming Disenheartened - Everyone talks about Python and says > Perl is old news. > > I didn't mean CGI, only standart types. > s

RE: sum a column

2004-10-02 Thread rmck
I apologize, I did miss read that comment about the author and having a clue. I thought it said "does not". I will attempt the helpful advice and let you know. Thanks, Rob -Original Message- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 12:02 PM To

Re: Howto reverse SortByValue with Tie::IxHash

2004-10-02 Thread Edward Wijaya
On Sat, 2 Oct 2004 08:53:02 -0500, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: This is a tough one. You need to supply a list of keys to the Reorder() method. Getting the list of keys already sorted by value may not be apparent to a beginner. $t->Reorder( reverse $t->SortByValue()->Ke

RE: How TO CREATE RUNTIME CONTROLS

2004-10-02 Thread Charles K. Clarkson
atul ashpalia <[EMAIL PROTECTED]> wrote: : I want to create runtime controls on the same webpage. : For example, my webpage will contain a textbox, a : hyperlink & a submit button. : I want to achieve the following functionality: : That is, if i click on the hyperlink, a new textboxes : should be

RE: Howto reverse SortByValue with Tie::IxHash

2004-10-02 Thread Charles K. Clarkson
Gunnar Hjalmarsson wrote: : Edward Wijaya wrote: : : : : my $t = Tie::IxHash->new(%hash); : : $t->SortByValue; # ascending, ok! : : : : $t->$hash{$b}<=>$hash{$a}SortByValue; # tried this but : : # doesn't work : : Where in the d

Re: Howto reverse SortByValue with Tie::IxHash

2004-10-02 Thread Gunnar Hjalmarsson
Edward Wijaya wrote: my $t = Tie::IxHash->new(%hash); $t->SortByValue; # ascending, ok! $t->$hash{$b}<=>$hash{$a}SortByValue; #tried this but doesn't work Where in the docs for Tie::IxHash did you find that syntax? You can obviously not just guess and hope that Perl will read your mind. Did you

Howto reverse SortByValue with Tie::IxHash

2004-10-02 Thread Edward Wijaya
Hi, I have a problem using Tie::IxHash. My question is how can I sort the hash by value in descending order. I tried this to get the descending order, but doesn't seem to work: __BEGIN__ my %hash =( '1-1' => 3, '2-3' => 2, '2-2' => 1, '1-2' => 6,

Re: Problem with subroutines with hash and var as input

2004-10-02 Thread Edward Wijaya
On Sat, 02 Oct 2004 01:46:01 -0700, John W. Krahn <[EMAIL PROTECTED]> wrote: there is an extra $ in there, it should be: 67: delete $HoH->{ $k } if keys %{ $HoH->{ $k } } < $limit; Thanks a lot John. Now it's ok. RegardS, Edward WIJAYA SINGAPORE -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Problem with subroutines with hash and var as input

2004-10-02 Thread John W. Krahn
Edward Wijaya wrote: On Fri, 01 Oct 2004 08:58:44 -0700, John W. Krahn <[EMAIL PROTECTED]> wrote: Since $HoH now contains a reference to a hash you have to dereference it properly. delete $HoH->{ $k } if keys %${ $HoH->{ $k } } < $limit; return %$HoH; I apologize for insisting John.