It still didn't work. I edited yours a bit and here's what it looks like:
sub get_entries {
open(DATA,"<$vars_gen{'CGIPath'}/variables/vars_entries.cgi"

or die ("Unable to open guestbook entry file."

;
@line = <DATA>;
close(DATA);
foreach $line (@line) {
$line =~ s/\n//g;
($var1,$var2,$var3,$var4,$var5,$var6,$var7,$var8,$var9,$var10,$var11,$var12,$var13,$var14) = split("\|",$line);
print "Col1: $var1<br>\n";
print "Col2: $var2<br>\n";
print "Col3: $var3<br>\n";
print "Col4: $var4<br>\n";
print "Col5: $var5<br>\n";
print "Col6: $var6<br>\n";
print "Col7: $var7<br>\n";
print "Col8: $var8<br>\n";
print "Col9: $var9<br>\n";
print "Col10: $var10<br>\n";
print "Col11: $var11<br>\n";
print "Col12: $var12<br>\n";
print "Col13: $var13<br>\n";
print "Col14: $var14<br>\n";
}
exit;
}
I use
$get_entries = &get_entries; to call that subroutine because to print HTML, I use:
print<<THIS;
HTML
THIS
When I go to the main file it does somthing wrong and displays it incorrectly. It looks somthing like:
Col1: H
Col2: e
Col3: l
Col4: l
Col5: o
Col6: |
Col7: S
Col8: i
Col9: x
Col10: |
What is wrong with it? :-(
[/b]
- Go there!