in reply to restriction in input
See conditional statements and length in Perl Documentation. Refer: perlop , perlfuncand perlintro.
Prasad