Thanks for your reply. You divined my intention exactly in spite of my rather minimal information! In fact, I do not need the regex match since the text file comprises one item per line (as I omitted to explain), so my $label = $_; is all I need.
Your suggested is lucid and perfect to my needs. I don't know why I find hash and array operations so confusing.
In reply to Re^2: trying to populate curses menus from text files
by boscaiolo
in thread trying to populate curses menus from text files
by boscaiolo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |