It would help us to help you better if you told us, exactly how you are getting input from your user. For example, if the user fills in an HTML form, a possible approach is the MAXLENGTH attribute:
<input type="text" name="irah" maxlength="10 value="">
Otherwise, there are the length and substr functions. Looking at the questions you ask, maybe reading perlfunc and a good introductory book to Perl would be in order?
In reply to Re: restriction in input
by Corion
in thread restriction in input
by irah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |