CPU: Perl, Fall 2005 Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables #9

Reading Line-by-Line

while ( defined( $line = <STDIN> ) ) {
    print "The line is -> $line";
}
Copyright © 2005 Ian Langworth