in reply to Re: Retunining hash values from subroutines
in thread Retunining hash values from subroutines
Thank you so very much gentlemen. You all are great :)
Mr Packetst thank you very much I think I almost had it before I even began this thread but I lost it because of the has format I used.
%UID_PATH = ("$USER" => "$UID[5]")instead of
$UID_PATH{$USER} = "$UID[5]";Even though my problem is solved I still like to know as to how I should write the hash like the fist instance with the arrow, if at all possible. Kindly note if I write it that way only one entry from the /etc/passwd is returned.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Retunining hash values from subroutines
by packetstormer (Monk) on Jun 20, 2013 at 12:59 UTC | |
Re^3: Retunining hash values from subroutines
by Laurent_R (Canon) on Jun 20, 2013 at 21:24 UTC |
In Section
Seekers of Perl Wisdom