Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Input from Standard Input

by choroba (Cardinal)
on Feb 13, 2012 at 01:40 UTC ( [id://953375]=note: print w/replies, xml ) Need Help??


in reply to Input from Standard Input

Using this particular syntax, the input is not accessible. You can assign it to an array if you want to do something with it:
my @input = <STDIN>; print 'Size: ', scalar(@input), " lines.\n";
Update: The last 50 lines are then accessible in
@input[-50 .. -1]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://953375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-20 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found