469,322 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,322 developers. It's quick & easy.

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 &.
Sep 12 '06 #1
1 1487
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";
Sep 18 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Jefferson Cowart | last post: by
11 posts views Thread by uoL | last post: by
3 posts views Thread by =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.