in reply to Strange undefined scalars in array
Every time this line
executes, you are creating a brand new variable called $modelselect. It will always be uninitialised; and thus will never be eq to '10';while (my $modelselect ne '10')
Try replacing that line with these two and you might have more success:
my $modelselect; while ( $modelselect ne '10')
|
|---|