HI. Senior
@myNames = ('Moe', 'Shemp', 'skie','blah');
$newdefined = $new;
my question is
if $new is not included in array @myNames, then push (@myNames, $newdefined);
if $new is included in array @myNames then print" $newdefined was registered \n";
i have been considered for ........ next...
while eventually i found $newdefined has been
pushed mutiple times while i only want to adds elements $newdefined to the array one time only
('Moe', 'Shemp', 'skie','blah' , '$new');
any one could light me a bit?
Thanks in advance
@myNames = ('Moe', 'Shemp', 'skie','blah');
$newdefined = $new;
my question is
if $new is not included in array @myNames, then push (@myNames, $newdefined);
if $new is included in array @myNames then print" $newdefined was registered \n";
i have been considered for ........ next...
while eventually i found $newdefined has been
pushed mutiple times while i only want to adds elements $newdefined to the array one time only
('Moe', 'Shemp', 'skie','blah' , '$new');
any one could light me a bit?
Thanks in advance