GetOptions( "one" => .....sub1().... , "two" => .....sub2()...., "three" => ....sub3().... ); sub sub1 { print "sub one"; } sub sub2{ print "sub two"; } sub sub3 { print "sub three"; } #### GetOptions( "one" => $three, "two" => $two, "three" => $three );