On Sat, Feb 02, 2013 at 08:29:30AM -0800, Michael Smith wrote:
> First I installed strawberry perl but it has no GUItest and I
> couldn't get guitest to install. Then I deleted strawberry and
> I installed padre-on-strawberry because it says it already
> contains GUItest and now I can't get anything but notepad to
> open the pl files. I have to type perl.exe test.pl every time
> and I'm just way to lazy for that.

While the other answer given should work, at least for complete
paths to the program file, you may consider wrapping your Perl
programs in a .bat or .cmd script. That should take care of this
problem and also make sure that you can run programs located with
PATH, etc. It also doesn't require any registry modifications
(whether automatic or otherwise), which I think is a big plus.

I notice that when I use ExtUtils::MakeMaker to install my
modules the batch scripts are generated automatically in Windows.
So that's another option. Write a Makefile.PL for your programs
and install them using ExtUtils::MakeMaker or equivalent.

Of course, due to limitations in the batch scripting language I
don't know of any reliable way to pass arguments with spaces
along, which is why I wrote that GuessArgs module that I posted
here weeks ago, but I digress.

Regards,


-- 
Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

Attachment: signature.asc
Description: Digital signature

Reply via email to