in reply to User input from a command line by giving options a,b,c

I think you don't really mean 'in a command line', but more 'through a text menu', if I understand you correctly. (At least, not through the normal understanding of 'command line', whether it is accurate or not.)

Take a look at Term::UI, Term::Menu, and IO::Prompt. I think those do what you are looking for.

  • Comment on Re: User input from a command line by giving options a,b,c

Replies are listed 'Best First'.
Re^2: User input from a command line by giving options a,b,c
by mgrangeiro (Novice) on Apr 06, 2010 at 18:11 UTC
    As a text menu through a command line. Is it possible? Thanks

      Why do you think DStaal offered the observation and provided those links?

      Do we do it for you? That's a different question.

      You mean have the script display the menu before it is run? Not really.