Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Reading a Line into an Array

by zeidrik (Scribe)
on May 31, 2001 at 12:19 UTC ( #84493=note: print w/ replies, xml ) Need Help??


in reply to Re: Reading a Line into an Array
in thread Reading a Line into an Array

Iakobski is right. This is smarter :)

#!/usr/bin/perl -w use strict; open(R,"textfile"); my @F=<R>; close(R); pop @F if $F[-1] eq "\n"; print @F;


Comment on Re: Re: Reading a Line into an Array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2015-07-31 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls