$ cat echo.txt echoed file $ ./teststdin.pl < echo.txt Line is: echoed file