1. $ echo "ella" |perl -lane 'print substr($_,0,1)' e 2. $ echo "-e" |perl -lane 'print substr($_,0,1)' [download]
In reply to perl problem with input line -e by unixguy