Code Library
Home Submit Free Hosting Link To Us Contacts

CGI Read File Contents

CGI Read File Contents CGI CGI Read File Contents Download (.zip)



#!perl
open(INFO, "file.txt");
@array=<INFO>;
close (INFO);

print "Content-type:text/html\n\n"; #Content Header

foreach $line (@array){
        ($last,$first)=split(/\|/,$line);
        print <<End_of_line;
        $first $last<br>
        End_of_line
}






Tatet