in reply to restriction in input
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: restriction in input
by irah (Pilgrim) on Jan 29, 2009 at 14:12 UTC | |
by Corion (Patriarch) on Jan 29, 2009 at 14:16 UTC | |
by citromatik (Curate) on Jan 29, 2009 at 14:56 UTC | |
by lostjimmy (Chaplain) on Jan 29, 2009 at 14:37 UTC |