Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: <> oddity ?

by Krambambuli (Curate)
on Mar 27, 2013 at 11:58 UTC ( #1025691=note: print w/replies, xml ) Need Help??


in reply to Re^3: <> oddity ?
in thread <> oddity ?

OK, got it solved and understood now, thanks.

I actually just want NOT to read from STDIN when there is a file given in the command line, and stop reading when that file is exhausted.

Turns out that I should NOT any further $line = <> once that hit EOF, because the immediate next attempt to do so will just open STDIN.

Ahaa... :)

Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025691]
help
Chatterbox?
[LanX]: the real problem: Britain ignores social mobility at its peril
[LanX]: oops sorry, should be msg

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-12-13 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (368 votes). Check out past polls.

    Notices?