in reply to Re^2: Building a Perl Menu
in thread Building a Perl Menu

I sympathise with your predicament - sounds like an MOD engagement I was involved with a coupla years ago...

If it is really command line, then the simplest solution would surely be the select command within the Korn shell e.g.

#! /bin/ksh PS3="Select an item:" select ITEM in opt1 opt2 opt3 opt4 ; do case "$ITEM" in opt1) ... ;; opt2) ... ;; opt3) ... ;; opt4) ... ;; *) echo "Bad call" ;; esac done
A user level that continues to overstate my experience :-))