Re: iterate over the fields of a struct?

2004-08-07 Thread Randy W. Sims
Christopher J. Bottaro wrote: is there a way to iterate over the fields of a Class::Struct (in the order they were declared)? No. You could store the data used to generate the struct, and then use it later. my @struct_data = [ key1 = 'type', key2 = 'type', ]; struct Name = [EMAIL PROTECTED];

RE: File::Basname ActiveState

2004-08-07 Thread Brian Volk
never mind. :-) File::Basename and File::Copy for that matter are included. It was File::stat that I need to install. Sorry! :-0 Brian -Original Message- From: Brian Volk Sent: Friday, August 06, 2004 11:28 AM To: Beginners (E-mail) Subject:

File::Basname ActiveState

2004-08-07 Thread Brian Volk
Hi All, I need to install the module File::Basename I'm using Active Perl and the ppm to install. I see the module described on the Active State web site ... http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/lib/File/Basename.html but I can't find it, to download. I tried searching w/ ppm I

Re: Creating hash with multiple keys for an array

2004-08-07 Thread Gunnar Hjalmarsson
Edward Wijaya wrote: Thanks so much for your reply Gunnar, The purpose is as follows. For example these lines: AGCAG,AGCCG,AGCCGGGCG,AGCCAGGAG 15.188721875540 AGCGGAGCG,AGCCGAGGG,AGCGGAGGG 16.163408331891 \_/ \_/ @Array1

How to update perl5?

2004-08-07 Thread Le Sandy Sun
Well,there are two perl5 in my solairs mechine. The defualt is perl5,v5.003 and another is perl5,v5.6.1 My question is how can I change the defualt perl5 from v5.003 to v5.6.1? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: How to update perl5?

2004-08-07 Thread Owen
On Sat, 07 Aug 2004 17:29:34 +0800 Le Sandy Sun [EMAIL PROTECTED] wrote: Well,there are two perl5 in my solairs mechine. The defualt is perl5,v5.003 and another is perl5,v5.6.1 My question is how can I change the defualt perl5 from v5.003 to v5.6.1? You will probably find a symbolic link

RE : iterate over the fields of a struct?

2004-08-07 Thread Jose Nyimi
-Message d'origine- De : Randy W. Sims [mailto:[EMAIL PROTECTED] Envoyé : samedi 7 août 2004 02:50 À : [EMAIL PROTECTED] Cc : [EMAIL PROTECTED] Objet : Re: iterate over the fields of a struct? Christopher J. Bottaro wrote: is there a way to iterate over the fields of a

Re: How to update perl5?

2004-08-07 Thread Le Sandy Sun
I think there is some problem.Because I can not change anything in /usr/dist.That is the point.The perl5 file and the perl5 profile.So that I get there ,but can do nothing. Owen wrote: On Sat, 07 Aug 2004 17:29:34 +0800 Le Sandy Sun [EMAIL PROTECTED] wrote: Well,there are two perl5 in my

Re: Creating hash with multiple keys for an array

2004-08-07 Thread Edward WIJAYA
Thanks so much for your reply Gunnar. However there is a bit complication. I just realize that hash table can only return the values of unique key. Please try to execute the code below along with the attached file, and the target answer below for clarity, (the current code return the deviated

Re: Creating hash with multiple keys for an array

2004-08-07 Thread Gunnar Hjalmarsson
Edward Wijaya wrote: I just realize that hash table can only return the values of unique key. And the compute_ic() function computes numbers that are not unique, so they can't be hash keys, I see. You have a new problem. We don't know much about the bigger picture here. Would possibly an array of

Re: Looking for Dan Muey

2004-08-07 Thread JupiterHost.Net
Sander wrote: I hope this isn't in violation of forum etiquette, but I am looking for Dan Using a fake email address so I have to use the list address and bug everyone to reply might be :) Muey. He used to post a lot on here and I need to contact him. I work with him from time to time, nice

What is this doing: eval 'exec /usr/bin/perl -T -w -S $0 ${1+$@}' if 0;

2004-08-07 Thread JupiterHost.Net
I found this code in a script right after the she-bang line: eval 'exec /usr/bin/perl -T -w -S $0 ${1+$@}' if 0; # not running under some shell What is it doing? Its like its executing itself again, but why? What the heck is: ${1+$@} ?? Wouldn't the eval never get done because of the if 0; ??

Re: Creating hash with multiple keys for an array

2004-08-07 Thread Edward WIJAYA
my @AoH = ( { values = ['AGCAG','AGCCG','AGCCGGGCG','AGCCAGGAG'] }, { values = ['AGCGGAGCG','AGCCGAGGG','AGCGGAGGG'] }, ); for ( 0..$#AoH ) { $AoH[$_]-{ic} = compute_ic( @{ $AoH[$_]-{values} } ); } print Dumper @AoH; Thanks Gunnar, I managed to construct the Array of Hashes