[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT. Alguien que controle perl basico?



No le estas diciendo que quiere imprimir al print. Yo de todas maneras
te aconsejaria usar el modulo CGI, es mucho mas comodo para trabajar con
perl y cgis.

====
#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "<HTML><BODY BGCOLOR=#FFFFFF>";

open(ARTICLE1, "filtro");
while($cLinea=<ARTICLE1>) {
  print $cLinea;
}
close(ARTICLE1);

print "</BODY>";
print "</HTML>";
====
#!/usr/bin/perl

use CGI qw(:standard);

print header();
print "<BODY BGCOLOR=#FFFFFF>";

open(ARTICLE1, "filtro");
while($cLinea=<ARTICLE1>) {
  print $cLinea;
}
close(ARTICLE1);

print end_html();
====

un salu2te,
Pedro Burgos.



Reply to: