Re: Select equivalent in perl

2011-04-09 Thread Tim Maher
l fo all my automation. So proud I did that. > > > > Quick question: I have been using "Select" function in shell to present > > menu to users. Do we have a "select" equivalent in perl? Yes we do! I uploaded a version to CPAN many years ago, which I (for one) use

Re: Select equivalent in perl

2011-04-07 Thread Alan Haggai Alavi
we have a "select" equivalent in perl? Or if I have a list of names in an array what is the best way to present them in a menu and prompt the user to select one from the list? The task is very easy to implement using IO::Prompt: =pod code use IO::Prompt; my @names = qw( foo bar baz qux

Re: Select equivalent in perl

2011-04-07 Thread Jim Gibson
t; function in shell to present > menu to users. Do we have a "select" equivalent in perl? Or if I have a list > of names in an array what is the best way to present them in a menu and > prompt the user to select one from the list? I use the print statement to present the li

Select equivalent in perl

2011-04-07 Thread Balaji krishnan
Hi folks I have been using shell script for my admin work and recently decided to use perl fo all my automation. So proud I did that. Quick question: I have been using "Select" function in shell to present menu to users. Do we have a "select" equivalent in perl? Or if I hav