Re: return sorted hashes from subroutines

2008-08-29 Thread Rob Dixon
Rob Dixon wrote: > > You can pass single hashes to and from subroutines as a simple list. So you > successfully passed in %db_del, for instance, but if you need to keep two or > more hashes separate you must pass them by reference. I should also have mentioned that a hash won't stay sorted, so yo

Re: return sorted hashes from subroutines

2008-08-29 Thread Rob Dixon
Pedro Soto wrote: > Hi, > I am trying to write script to retrieve info from a file that looks like: > > col1 col2col3 > A5 10 > A5 10 > A5 11 > A6 8 > A7 9 > B5 8 > B6 9 > what

Re: return sorted hashes from subroutines

2008-08-29 Thread Amit Saxena
On Fri, Aug 29, 2008 at 5:10 PM, Pedro Soto <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to write script to retrieve info from a file that looks like: > > col1 col2col3 > A5 10 > A5 10 > A5 11 > A6 8 > A7 9 >

Re: return sorted hashes from subroutines

2008-08-29 Thread Xavier Mas
El Friday 29 August 2008 13:40:04 Pedro Soto va escriure: > Hi, > I am trying to write script to retrieve info from a file that looks like: > > col1 col2col3 > A5 10 > A5 10 > A5 11 > A6 8 > A7 9 > B5

return sorted hashes from subroutines

2008-08-29 Thread Pedro Soto
Hi, I am trying to write script to retrieve info from a file that looks like: col1 col2col3 A5 10 A5 10 A5 11 A6 8 A7 9 B5 8 B6 9 what i need is to get for each (non redundant)