Re: Taking Multiple Files in Pairs and Run it Iteratively

2005-03-13 Thread Harald Ashburner
On Sun, 13 Mar 2005 18:38:42 +0800, Edward Wijaya <[EMAIL PROTECTED]> wrote: > Hi, > > Suppose I have a pair-series of files as follows: > > data1.fa > data1.rs > data2.fa > data2.rs #say each of this file contain lines of numbers > #and there are 40 of files > > And I have a code that

Preserve order in a HoH

2005-03-10 Thread Harald Ashburner
Greetings, I've created a complicated structure using autovification that is essentially a hash of hash of hash of hash etc. I pass them to the template toolkit where I can get them all out and put them in the right place on the page. This all worked well and nicely. The late mail is that the re

Re: Simplify perl -e '$a = [1,2,3,4,7]; print $a->[$#{@$a}]'

2005-03-10 Thread Harald Ashburner
On Thu, 10 Mar 2005 14:52:36 -, Marcos Rebelo <[EMAIL PROTECTED]> wrote: > This is correctly printing '7' but '$a->[EMAIL PROTECTED]' seems to be > encripted > code. > > Can I write this in a cleaner way? > perl -e '$a = [1,2,3,4,7]; print $a->[-1];' -- Kind regards, Hal Ashburner -- To