Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PERL Main and Submenu driven application

Posted on 2008-10-01
4
Medium Priority
?
689 Views
Last Modified: 2010-07-05
Hi,
I want to develop an PERL based Menu driven application which has Main Menu and Multiple SubMenus and Submenu has again Submenus. ROlling back to Parent Menu is one of options. How do I write this kind of Menu Driven program in perl. Appreicate syntax and logic help in this regard.
0
Comment
Question by:v_sriharsha
  • 2
3 Comments
 
LVL 28

Expert Comment

by:FishMonger
ID: 22619757
0
 

Author Comment

by:v_sriharsha
ID: 22624283
My Perl application runs on HPUX as console application. It is an interactive console application on HPUX. For ex:
Main Menu
**************
1. select1
2. Select2
3. select 3.

Enter the option : 1
# Here sub menu should appear
Select1 Submenu
1.  option1
2.  option2
3. optons3
Enter the option: 1

select options1 submneu:
1. cmd1
2. cmd2
3. cmd3
Enter ok to continue, b to previous menu or e to Abort:

THis is the kind of menu driven programm i am looking for..But in Perl I dont know the syntax of how to write this kind of programm.. Is there any object oriented way or writing this interactive programm.

Apreicate your help
Regards
0
 
LVL 28

Accepted Solution

by:
FishMonger earned 1000 total points
ID: 22624532
I have not used either of these, but here are 2 modules that you might test.

http://search.cpan.org/~corliss/CursesWidgets-1.997/Widgets/Menu.pm
http://search.cpan.org/~dazjorz/Term-Menu-0.09/lib/Term/Menu.pm

You should also do some additional searching on cpan, such as:
http://search.cpan.org/search?query=curses&mode=all

Initially I wouldn't worry about the syntax needed to build a menu system.  I'd start by creating a detailed flowchart of your entire program.  Next would be to take each of the items in the flowchart and write the pseudo code.  Once the pseudo code is done then look into the required syntax.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question