Prompting a user few questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Limeburner72
    New Member
    • Sep 2006
    • 11

    Prompting a user few questions

    Hi,
    how can I ask a user few questions to enter n things (n<=10) and things is one of the three symbols $,£ or &.
  • HermannJens
    New Member
    • Aug 2006
    • 7

    #2
    Originally posted by Limeburner72
    Hi,
    how can I ask a user few questions to enter n things (n<=10) and things is one of the three symbols $,£ or &.

    print STDOUT "What is your choice?\n";
    my $choice= <STDIN>;
    print STDOUT "You chose $choice\n";

    Comment

    Working...