Hi...again!
The idea => The array is like the last one
@bad_answer=(
"Bad",
"Bad to be honest",
"Not good",
"Not good enough"
);
Now I would like to know if it's possible when the user put with <STDIN> something prove if it is in the array (i know how to do this) and if it isn't save it for ever as part of the initial array.Prob. my explication is quite short, if there's any dude, ask
my $useranswer=<STDIN>;
if ($useranswer~~@bad_answer){print "ok";} #shotversion
else{SAVE THE DATA INSIDE THE ARRAY}
@bad_answer=(
"Bad",
"Bad to be honest",
"Not good",
"Not good enough",
"USER INPUT"#I'll have 3 different arrays
);