Hola,
 
Tengo una duda... porque al realizar:  
 Código PHP:
     my $upload_filehandle = $cgi->upload("tmpfile"); 
    
  me dice que no tengo definido el upload filehandle? he de hacer algo de antemano con el fichero?? 
la llamada al codigo perl es mediante:  
 Código PHP:
    $.ajax({
            type: "GET",
            url: "/cgi-bin/getFrases.pl", // URL of the Perl script
            //contentType: "charset=utf-8",
            //dataType: "json",
            // send username and password as parameters to the Perl script
            data: "tmpfile=" + tmpfile,
            // script call was *not* successful
            error: function(XMLHttpRequest, textStatus, errorThrown) { 
                alert("Error "+ obtenerFecha()+" contacte con el webmaster");
            }, // error 
            // script call was successful 
            // data contains the JSON values returned by the Perl script 
            success: function(data){
                alert("fichero "+data+" subido correctamente");
            } // success 
    
  alguna idea?? :( 
Gracias