in reply to How to create a option menu????

See Getopt::Long. There are many other option processing modules but that one is included with Perl and is "standard". You may also like Getopt::Std for an even simpler approach.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.