Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Reading a Line into an Array

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


in reply to Reading a Line into an Array

This works:

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


Comment on 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://84488]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-12 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls