Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Read from a file one line at a time?

by Anonymous Monk
on Feb 21, 2012 at 16:27 UTC ( #955348=note: print w/replies, xml ) Need Help??

in reply to Read from a file one line at a time?

I don't think I was entirely clear. What I need to do is read a single line of multiple strings into an array, so is there a way to do that?

  • Comment on Re: Read from a file one line at a time?

Replies are listed 'Best First'.
Re^2: Read from a file one line at a time?
by DStaal (Chaplain) on Feb 21, 2012 at 22:07 UTC

    Sure. But what it is depends heavily on the format of the strings and how you want them in the array. Start with the other suggestions in this thread (for how to read each line), and try to figure out something. If/when that doesn't work, post what you've got and ask for help.

    We hate doing things for you here. We love to help though.

Re^2: Read from a file one line at a time?
by john.perry.14 (Initiate) on Feb 21, 2012 at 16:28 UTC

    Sorry. Was not logged in. My post

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955348]
[Your Mother]: Someone had to say it. Better it came from tail.
[LanX]: Cat Mama!
[Your Mother]: Das right.
[Eily]: actually I forgot to provide the filename as a parameter
LanX it reeks.
[Your Mother]: You know what they say, the reeky wheel gets the best price at cheese market.
[Eily]: well I had to google translate that
[Eily]: let me inform you that the Dutch reek translate into the Czech páchnout
[Eily]: very useful default translation :P
[Eily]: BTW LanX, you should try typing a few random chars at the beginning of each message. This will prevent expansion :P

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-03-27 16:48 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.