FW: How does one get returned values from embeded scalars

2002-04-01 Thread J . Hourihane
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, );

Re: FW: How does one get returned values from embeded scalars

2002-04-01 Thread bob ackerman
looks like '$login = print $hosts{$hostname};' is not what you want. 'print' function returns '1' -- not the string it prints. you want: $login = $hosts{$hostname}; and if you really want to print the value: print $login; On Monday, April 1, 2002, at 08:30 AM, [EMAIL PROTECTED] wrote: The