Re: Professional IDE for a cross-platform Perl application
- From: Ala Qumsieh <noreply@xxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 22:00:02 GMT
Bob wrote:
Hello,
I have a 15 years old application that I have written in perl without
any IDE. This
application has a PostgreSQL database as server side, a tk-based
client, and
both run on linux only. I feel trapped, because
Hmm .. I don't think Perl/Tk is 15 years old, but I digress :)
- the client is not compiled, and thus runs slowly;
Compiling won't speed it up. You have to look at where your client is
spending most of its time, and optimize that code.
- the client must now run also on osx and windows, natively;
Perl is cross-platform for the most part. So unless you hard-code
linux-specific stuff, or you use platform-dependent modules, your code
should run fine on other platforms.
- the client's tk-based gui is limited, but I have no clue about
cross-platform alternatives;
Tk runs on most, if not all, platforms that Perl runs on. It certainly runs
well on windows, *nix and OSX. No need for alternatives.
- each time I try to port it to windows or osx I get missing components
and misbehaviours.
First thing, I guess, is to install any missing modules. What kind of
misbehaviours are you seeing?
How do I reshape the client so that I can develop it in one machine and
generate
reliable and installable executables for other platforms?
make sure you don't use any platform-specific code, unless you have to. If
you do, then make sure you isolate the code, using something like
(untested):
BEGIN {
if ($^O =~ /win/i) {
require Win32::Specific::Module;
} elsif ($^O eq 'linux') {
require Linux::Specific::Module;
}
}
--Ala
.
- Follow-Ups:
- References:
- Prev by Date: Re: Deleting duplicate values in hash of hashes
- Next by Date: Re: deflate parts of a file
- Previous by thread: Re: Professional IDE for a cross-platform Perl application
- Next by thread: Re: Professional IDE for a cross-platform Perl application
- Index(es):
Relevant Pages
|