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 you can't write a subroutine that sorts a hash and returns it. If you need to access a hash in sorted order it's usual to keep a sorted array of keys in parallel with the hash. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/