I'm trying to convert a perl script to a executable file with PAR::Packer pp with the command (Windows 7 64 bits):

"pp -o teste.exe gmail_att.pl"

but i'm receiving the message:

"# Use of runtime loader module Module::Runtime detected.Results o +f static scanning may be incomplete."

I search for this message on the internet but without success The script:

printf("Iniciando o envio de e-mails... \n"); use strict; use Try::Tiny; use IO::All; use Email::MIME; use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP::TLS; use Spreadsheet::XLSX; use File::Basename; my $diretorioScript = dirname(__FILE__); my $excel = Spreadsheet::XLSX->new( "$diretorioScript\\jofalista.x +lsx", ); my $diretorio = "$diretorioScript\\arquivos\\"; my $email = ""; my $nome = ""; opendir(diretorio, "$diretorio"); my @lista = readdir(diretorio); closedir(diretorio); foreach my $arquivo(@lista) { $email = ""; $nome = ""; if ($arquivo ne "." && $arquivo ne ".."){ # print $arquivo; # rotina para buscar dentro do arquivo xls qual o email # de destino do arquivo foreach my $sheet ( @{ $excel->{Worksheet} } ) { $sheet->{MaxRow} ||= $sheet->{MinRow}; foreach my $row ( $sheet->{MinRow} .. $sheet->{MaxRow} + ) { $sheet->{MaxCol} ||= $sheet->{MinCol}; foreach my $col ( $sheet->{MinCol} .. $sheet->{Max +Col} ) { my $cell = $sheet->{Cells}[$row][$col]; if ($cell) { #printf( "( %s == %s ) \n", "$cell->{Val}. +pdf", $arquivo ); if("$cell->{Val}.pdf" eq $arquivo){ $nome = $cell->{Val}; my $emailCell = $sheet->{Cells}[$row][ +$col+1]; $email = $emailCell->{Val}; #printf("%s", $email); } #printf( "( %s , %s ) => %s\n", $row, $col +, $cell->{Val} ); } } } } if($email ne ""){ printf("Processando o arquivo $arquivo para o email: $ +email \n"); # Create and array of email parts. # Here i have 2 attachments ( an image and a pdf file) + and a text message. my @parts = ( Email::MIME->create( attributes => { filename => "$arquivo", content_type => "application/pdf", encoding => "base64", disposition => "attachment", name => "$arquivo", }, body => io( "$diretorio$arquivo" )->all, ), Email::MIME->create( attributes => { content_type => "text/html", }, body => "Ola $nome este é um e-mail teste da J +OFA", ) ); # Create the email message object. my $email_object = Email::MIME->create( header => [ From => 'marchiore.matheus@gmail.com +', To => $email, Subject => "Certificado $nome", content_type =>'multipart/mixed' ], parts => [ @parts ], ); # Create the transport. Using gmail for this example my $transport = Email::Sender::Transport::SMTP::TLS->n +ew( host => 'smtp.gmail.com', port => 587, username => 'marchiore.matheus@gmail.com', password => '' ); # send the mail try { sendmail( $email_object, {transport => $transpo +rt} ); } catch { warn "Email sending failed: $_"; }; } } } printf("Pressione ENTER para Finalizar... \n"); chomp( my $input = <STDIN> );

In reply to Convertion Perl Script to Exe with PAR::Packer pp by marchiore

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.