Jeff said:
Hi - Since I'm not a programmer, and OOP C++ is a bit beyond me, but i
AM a UNIX perl hacker, I was thinking of learning Perl/TK on WIN32 so I
could write PC scripts and utilities. I downloaded ActivePerl and
looked at it. However, it appears that I would need a perl
installation on every target machine. Is there any easy, (and low or
zero cost) way to generate standalone Perl/Tk executables? ...
/j
I don't understand why you think you need to make an executable to have
it run anywhere that uses the same platform. It is easy, for example,
to make a CDROM that will autorun a Perl/Tk program on any target Win32
system, without installing anything, making any executable, etc. Here
is an example directory list of such a CDROM:
E:\>dir
Volume in drive E is 000716_2242
Volume Serial Number is 3DD9-9056
Directory of E:\
AUTORUN INF 30 07-16-00 4:08p autorun.inf
LOOKUP BAT 26 07-16-00 4:03p lookup.bat
LOOKUP PL 4,118 07-16-00 9:38p lookup.pl
LPAP DBN 499,712 07-15-00 11:20p lpap.dbn
LPFN DB 5,218,304 07-15-00 10:49p lpfn.db
LPHN DBN 4,472,832 07-15-00 11:13p lphn.dbn
LPLN DB 5,767,168 07-15-00 10:49p lpln.db
LPMAIN DB 84,811,776 07-15-00 10:49p lpmain.db
LPMI DBN 2,449,408 07-16-00 12:56p lpmi.dbn
LPSD DBN 155,648 07-15-00 11:13p lpsd.dbn
LPSF DBN 147,456 07-15-00 11:04p lpsf.dbn
LPSM DBN 2,809,856 07-15-00 11:13p lpsm.dbn
LPST DB 5,873,664 07-15-00 10:49p lpst.db
LPTN DBN 2,875,392 07-16-00 8:41p lptn.dbn
LPZP DBN 2,924,544 07-15-00 11:21p lpzp.dbn
PERL <DIR> 07-16-00 10:42p Perl
README TXT 10,719 07-16-00 10:37p readme.txt
SETUP BAT 26 07-16-00 4:03p setup.bat
17 file(s) 118,020,679 bytes
1 dir(s) 0 bytes free
E:\>
The Perl/Tk program is lookup.pl, the Perl directory is a direct copy of
my Perl directory on my PC, including everything there (if space were an
issue, one could get rid of the docs, unused modules, etc). The
autorun.inf file contains:
[autorun]
open=lookup.bat
and lookup.bat contains:
@perl\bin\perl lookup.pl
The rest of the files are data files or informational. Setup.bat is
just a copy of lookup.bat for those who might have autorun turned off --
folks are more likely to type "setup" than "lookup".
Folks can also simply copy the whole CD to a directory on their hard
drive, and have it work from there with better performance than straight
off the CD, with no setup, installation, etc -- and have it be 100% gone
when they erase the directory. All in all, very effective and very easy.
HTH.