Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2018-07-19 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (411 votes). Check out past polls.

    Notices?