[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Simple question (I hope)



Fabiano Petrone <fabiano.petrone@ud.nettuno.it> writes
>just a simple question : I've wrote a script that produces a formatted
>table as output : I've utilized the command:
>
>open(STDOUT, ">outputfile");
>
>to do so (obviously "outputfile" is the name of the output file).
>Well, if I double-click to the "outputfile" this calls Teachtext to
>be opened and (I don't know why) all the text doesn't appear still
>formatted as in the macperl window... why?

I can only assume your 'formatted table' uses tabs or relies on a
monospaced font to line columns up. Selecting font/tab spacing is usually
configurable in the program used for viewing your file, and setting which
program is opened when you file is double-clicked is described below.

>I've seen the macperl preferences but I've not found an option like
>"output text will be opened with..." that allows me to choose macperl
>as the "default" text editor for such files.
>
>Any suggestion?

I can't remember what creator, if any, is used for the text files produced
from MacPerl, but it's simple enough to set this yourself:
    MacPerl::SetFileInfo("R*ch", "TEXT", $fpath1);
where "R*ch" is for BBEdit. Adjust to suit

cheers,
Danny Thomas