in reply to Follow up: String Formatting

Seems to me that if it was a question of reference counts, you could achieve the same thing with
$ssh->login($username, "$password");
Does that work?

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Follow up: String Formatting
by choedebeck (Beadle) on Dec 05, 2005 at 21:40 UTC
    I guess it is not a question of reference counts then. I have tried the following
    $ssh->login($username, "$password");
    and
    my $newpass = $password; $ssh->login($username, $newpass);
    and
    $ssh->login($username, scalar($password));
    All to no avail. The only thing that has worked is either me hardcoding the password into my script or me using the Data::Dumper technique.