View Single Post
  #2 (permalink)  
Old December 20th, 2014, 09:16 AM
eurohttp eurohttp is offline
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2014
Location: Busovaca, BIH
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eurohttp
Default From where did you got this script?

I can tell you how to open and close filehandle like this:

open(FH,"<text.txt");
@array = <FH>;
close(FH);

This is for reading. For writing change "<text.txt" to ">text.txt". For appending ">>text.txt".

Now chomp function you could use for STDIN input. You can add use foreach to list file content from array. after close(FH). If you plan to read from file it means. Its very simple.
Reply With Quote