develooper Front page | perl.beginners | Postings from April 2002

FW: How does one get returned values from embeded scalars

Thread Next
From:
J.Hourihane
Date:
April 1, 2002 08:31
Subject:
FW: How does one get returned values from embeded scalars
Message ID:
9877566273EED511A7560008C716DA06B42B@exchcpn1.cdcna.com
The problem I am having is with $full
How do I get $login to return its value when I try to assign this scalar
$full 

Thanks in advance

#!/util/perl5.static

$hostname = qx(/usr/ucb/hostname);
chomp $hostname;

%hosts = (
	crane => "hourihj",
	runner => "paulg",
	ice => "root",
);

$login = print $hosts{$hostname};
chop $login; 

#print "$login\n";
$full = qx(ypmatch $login passwd);
print $full;

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About