#!/usr/bin/perl $key=`read -n3 key; echo \$key`; print "$key\n"; #### read: 1: Illegal option -n