CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: DBI: Re: [mohsenalizadeh] problem with select quary when I convert program to .exe file : Edit Log



FishMonger
Veteran / Moderator

Mar 17, 2010, 5:35 AM


Views: 8261
Re: [mohsenalizadeh] problem with select quary when I convert program to .exe file

Please use the code tags, they will retain the code formatting which makes it much earier fur us to read your code.

Start by adding these 2 pragmas, which should be in every Perl script you write.

Code
use strict; 
use warnings;


Change all 'our' declarations to 'my' declarations. The strict pragma will point out other vars that need to be declared.

Add this to the DBI connect statement.

Code
RaiseError => 1


I am not familiar with the cava packager. Did you receive any errors or warnings when you created the exe?

Have you tried building the exe with PAR::Packer?
http://search.cpan.org/~smueller/PAR-Packer-1.002/lib/PAR/Packer.pm


(This post was edited by FishMonger on Mar 17, 2010, 5:36 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Mar 17, 2010, 5:36 AM
Post edited by FishMonger (Veteran) on Mar 17, 2010, 5:36 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives