kevind0718 has asked for the wisdom of the Perl Monks concerning the following question:
Then the text talks about how this foreach, because it is in list context. Will load the full <STDIN>. My question is: Where is the input stored? In @_ I do not think so. How can I get the length of the input? Maybe I had read in a large file and I only wanted to process the last 50 lines. As always thanks for your kind assistance. KDforeach(<STDIN>) { print "I saw $_"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Input from Standard Input
by choroba (Cardinal) on Feb 13, 2012 at 01:40 UTC | |
|
Re: Input from Standard Input
by Anonymous Monk on Feb 13, 2012 at 01:42 UTC | |
by kevind0718 (Scribe) on Feb 13, 2012 at 01:52 UTC |