#!/usr/bin/perl -w my $line = ; print "Line is: " . $line; $ echo 'echo' | ./teststdin.pl Line is: echo