Text2ascii

declare -a INPUT echo "Enter characters seperated by space to be converted to ASCII code. " read -a INPUT char_count=${#INPUT[*]} i=0 while [ $i -lt $char_count ]; do ASCII=`perl -e 'print ord shift' ${INPUT[$i]}` CHAR=${INPUT[$i]} echo -e "$CHAR - $ASCII" i=$(($i+1)) done
 * 1) !/bin/bash
 * 2) Convert string to ASCII code
 * 3) mutante / s23.org
 * 1) echo $char_count

Can you change this so that input does not have to be seperated by spaces anymore?