¡¡Hola!! Tengo el siguiente código:
#!C:\perl\bin\perl.exe -X
use File::Find;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use strict;
my $q = new CGI;
my @thefiles = $q->param("thefiles");
my @files = $q->param("files");
my @lines = $q->param("lines");
my $f = $q->param("f");
my $query = $q->param("query");
my $consulta = $q->param("consulta");
require "divs.pl";
#my $Mostrar= "";
if($consulta == '1'){
&Resultados;
}else{
&Principal;
}
sub Principal{
print <<eof;
<html><head><title>prueba archivos cgi</title></head><body>
<form action='Nuevo3.cgi' method='post'>
<input type='text' name='query' size='50'>
<input type='submit' name='Mostrar' value='Mostrar' ...
News of Foro - Perl en Español