my $state = { username => $username, sessionid => $sessionid, whatever => $else, }; &one($state, $other_args); &two($state, @more); &three($state); #### $state = new Object($username, $sessionid); $state->one($other_args); $state->two(@more); $state->three;