Suresh Govindachar wrote:
>   
>   a) The stuff at the top is common to all perl scripts I write, and
>      it is too much trouble to tweak them on a per-script basis.  
>   
>   b) The shebang line is when the script needs to be run on linux.

That's pretty obvious.  :)

>   c) The stderr to stdout mapping is to help with development under
>      VIM.  In VIM, I have mapped <F5> to saving the file, marking
>      the present location, jumping to the end of the file, executing
>      the file, collecting the stdout output and appending the output
>      to the end of the file and jumping to the first line appended.
>      The stderr to stdout mapping helps capture error messages.

Ah, care to share your macro.  Isn't STDOUT normally going to the same place
as STDERR or do you change that ?

>   > perl -i~ -pe  "binmode ARGVOUT if $.==1;" <dos-files>
> 
>   Made it into a doskey macro:
>  
>       d2u=perl -i~ -pe  "binmode ARGVOUT if $.==1;" $*

Beat you to it - I use tcsh alias though and had trouble quoting it
right and ended up with a two liner (might be a bug in tcsh aliasing):

        set d2ub='binmode ARGVOUT if $. == 1'
        alias d2u "perl -i~ -pe '$d2ub' \!*"
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to