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

[MacPerl] Re: Checking perl syntax from BBEdit



Stephane Jose <jose.stephane@uqam.ca> wrote:

>How can I check the syntax of a perl script _directly_ from BBEdit without
>actually running the script or manually opening it in MacPerl.
>Is there a BBEdit extension out there that would send the script to MacPerl
>for _checking_ only?

Put the following AppleScript into your BBEdit Scripts folder.

tell application "MacPerl"
        activate
        get the contents of Window 1 of Application "BBEdit 4.0"
        Do Script "#!perl -wc" & return & the result
end tell

Gero


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch