Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Open() : Not reading all lines in my text file

by perlfan (Curate)
on Jun 23, 2016 at 18:34 UTC ( #1166399=note: print w/replies, xml ) Need Help??


in reply to Open() : Not reading all lines in my text file

You're only opening the file handle.
open my $fp, "<", $titlefile or die "Can't open <$titlefile: $!"; my @lines = <$fp>; # now iterate over @lines

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2020-05-29 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (168 votes). Check out past polls.

    Notices?