Re: Professional IDE for a cross-platform Perl application



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

.



Relevant Pages

  • RE: Accessing oracle from windows 2000
    ... platforms (with caveats and issues that will be outlined below. ... I use DBD::Oracle when using an Oracle data source. ... You need to have the Oracle client installed -- and licensed -- on your ... while ago (after the Perl 5.6.x timeframe and before 5.8.x timeframe). ...
    (perl.dbi.users)
  • Re: Problem referencing arrays from modules only on Win32
    ... Are you perhaps running different versions of Perl on the two ... or from your program into a Usenet post always avoid ... the two platforms and found to produce diffent output. ...
    (comp.lang.perl.modules)
  • Re: perl version for windows
    ... not all Perl functionality works on all Unix platforms. ...
    (perl.beginners)
  • Re: Is there a strategy for multiplatform builds and distributions?
    ... > One issue that I should have raised in my original question is: ... > How to deal with MS Developer Studio? ... etc from Unix don't usually exist in other platforms. ... Perl versions of these,, ...
    (comp.lang.fortran)