CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [teja] parsing a text file column wise: Edit Log



7stud
Enthusiast

Apr 11, 2010, 3:20 AM


Views: 1121
Re: [teja] parsing a text file column wise


Code
#open the file 

for my $line (<$INFILE>) {
my @fields = split '^', $line;

#validate fields
}

#close the file



(This post was edited by 7stud on Apr 11, 2010, 3:21 AM)


Edit Log:
Post edited by 7stud (Enthusiast) on Apr 11, 2010, 3:21 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives