lundi 12 janvier 2015

perl PAR::Packer generate executable file error

pp --dependent -o a.exe a.pl


when i execute a.exe like ./a.exe error info:


Use of uninitialized value $myname in concatenation (.) or string at script/a.pl line 25. DBI connect('dbname=script/../db/test.sqlite','',...) failed: unable to open database file at script/sue_test.pl line 50


Line 25 and line 50 in a.pl:


24 my $myname = abs_path(FILE);


25 $0 = "$myname $conf_filename";


50 my $dbh = DBI->connect( $dsn, "", "", { 'RaiseError' => 1 } );


How slove this problme, Thx~


Aucun commentaire:

Enregistrer un commentaire