my $username = $values{'username'}; my $password = $values{'password'}; # now do whatever you want with them.