Fiddle-dee-dee! Having just chastised someone for posting AND emailing,
I find myself having to do just that because of... well, shall we say
"wibbly finger syndrome". Sorry David.


On Sat 16 Mar, David H Wild wrote:
> 
> In article <[EMAIL PROTECTED]>,
> James Taylor <[EMAIL PROTECTED]> wrote:
> > 
> > I also have the run action of Perl files set to run
> > them in a task window for convenience.
> 
> Thank you very much - they should be very useful.

My pleasure. :-)

> Can you post how you altered the run action? I was going to
> try this, but wasn't sure how to do it.

Hmmm, I'm not sure I went about this in the most orthodox manner.
First I changed the last line of the !Perl.!Run file from:

/<Obey$Dir>.Perl %*0

to:

If "<Wimp$State>"="commands" then /<Obey$Dir>.Perl %*0 else TaskWindow 
"/<Obey$Dir>.Perl %*0" 1024k Perl -quit

Then I realised that the !Perl.!Boot file was resetting the
run action each time so I commented out line 46 as follows:

| Set Alias$@RunType_102 WimpSlot 1024K|m /<Perl$Dir>.Perl %%*0

This has the advantage that I can double click Perl files to
run them in a task window but still run them from the F12
command line directly. The only limitation is that you can't
run Perl programs from a task window's star prompt unless you
prefix it with *perl.

However, some time later I spotted that it might have been
easier just to have uncommented line 57 of the !Boot file:

| Set Alias$@RunType_102 Taskwindow |"<Perl$Dir>.Perl %%*0|" -wimpslot 2048k -name 
|"Perl 5.005" -display -quit

Although, I'm happy that I did it my way because uncommenting
line 57 does not allow Perl programs to be run at the F12
star prompt (unless prefixed with *perl of course).

Hmmm, I can't help feeling there ought to be a way to
arrange for all three situations (double clicking, F12 star
prompt, and task window star prompt) to work smoothly.
I suppose all it would need is someone to write a code
variable to detect the environment appropriately.

-- 
James Taylor <[EMAIL PROTECTED]>
Based in Southam, Cheltenham, UK.
PGP key available ID: 3FBE1BF9
Fingerprint: F19D803624ED6FE8 370045159F66FD02

Reply via email to