Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

IO::Prompter with colored menu's

by doubledecker (Scribe)
on Jan 25, 2013 at 09:17 UTC ( #1015292=perlquestion: print w/ replies, xml ) Need Help??
doubledecker has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I'm trying to display menu by prompting the user to select one option from the menu. I want to display colored menu and using IO::Prompter module

here is the thing i've tried so far....

#!/usr/bin/perl use strict; use IO::Prompter; my $animal = prompt 'Select' -style=>'bold red on yellow', -number, -m +enu=>[ 'Cat', 'Dog', 'Tiger' ], ' >'; print $animal;

but this is not working what i expected. any help is appreciated

Comment on IO::Prompter with colored menu's
Download Code
Re: IO::Prompter with colored menu's
by choroba (Canon) on Jan 25, 2013 at 09:38 UTC
    Is your syntax correct? I miss a comma after 'Select'. Maybe Perl does too?
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1015292]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2015-07-07 15:34 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (90 votes), past polls