BINF634_FALL14 COMPLEX DATA STRUCTURES AND PARSING21 Hashes for Passing Parameters Problem: suppose you have some subroutines that take many arguments Don't want to have to remember the right order Don't want to have to remember the default values Solution: Pass in a hash of the form (arg1 => value1, arg2 =>value2, etc.) This allows arguments to appear in any order in calling program Subroutine can detect missing arguments (using exists) and supply default values
{}