Hi ikegami,
Thanks for the input.I too suspect that it should be shell's limitation.Not sure if the length is controlled by a environment/shell varaible of my ksh(*NIX box) which I strongly suspect.I am really after this Env/shell varaible whcih I belive if I can export prior to taking the input then I should be able to input more characters.
FYI:As you suggested reading from file would be ideal but the requirement is to take a direct input from command line.The users would be invoking the script from a menu of options where they would be asked for the message through th e command propmt.They are not alloed to create files on unix box.
By the way would you mind if I ask you what actually is the line doing:
perl -le'print "x" x ($ARGV[0]-1)' 100 | perl -le'print length <>'