Home : General : Perl Programming :

General: Perl Programming: Re: [tandat] push new element to array: Edit Log

Here is the list of edits for this post
Re: [tandat] push new element to array
how to lookup if specified key in a hash is exist ?
#@myNames = ('Moe', 'Shemp', 'skie','blah');
$newduserid=newuseridentered
%myNames = (
userid1 => Moe, 20, male
userid2 => Shemp, 30,male
userid3, => skie, 40,,male
userid4 => blah ,50,male);


if newduserid= userid1 then
print" $userid1 is most probabley has been registed before. \n";

else print
print" you are encouraged to registe again. \n";


I wonder if there are any company code much like Wychwood and tandat shows us?
what i really want is prevent from using loop.

Last edited by:

courierb: Oct 1, 2007, 1:44 AM

Edit Log: