my $prog_state = "bar"; execInstructions($prog_state); # and later... =item C Executes a given set of instructions for a specific state that the program is in. Blah blah blah.