in reply to can i get the value outputed from my subroutine into my program as a value
I am thinking you want to assign the results of getPassword to $Password... that would be something like:
my $Password = getPassword();
in order to do that you will want to return that password from getPassword...I notice that some code appears missing (you didn't close the subroutine block for getPassword), so maybe you are returning something from getPassword that isn't listed...
something similar to:
my $Password = getPassword(); sub getPassword { # do some stuff to create a password return $password; }
|
|---|