F
FrOst
Guest
I made an array that has a bunch of elements that are names.
If I get the user to tell me the specific name that they want deleted, how can I make my program show which array that is?
So far I have
if ($num == 3)
{
print "What is the name that you want deleted?";
$name=<STDIN>;
chomp $name;
}
Am I going about this right? $name will be identical to the element's contents that I would like deleted.
10 points.
If I get the user to tell me the specific name that they want deleted, how can I make my program show which array that is?
So far I have
if ($num == 3)
{
print "What is the name that you want deleted?";
$name=<STDIN>;
chomp $name;
}
Am I going about this right? $name will be identical to the element's contents that I would like deleted.
10 points.