#If you just use the angle brackets < and > alone, without specifying any file handle, STDIN is used by default. while ($temp = <>) { print $temp; }