http://www.perlmonks.org?node_id=808890


in reply to Re^2: RFC: Porting map() and grep() to AppleScript
in thread RFC: Porting map() and grep() to AppleScript

... i thought it was twiiter :-)

...seriously.... the conventional way to introduce non-perl scripts here, is to wrap them in an here doc, like:

#/usr/bin/perl my $scriptSrc = <<"EOF"; <SCRIPT LANGUAGE="APPLESCRIPT"> # all your applescript here EOF print $scriptSrc,"\n";
... then everybody is happy

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^4: RFC: Porting map() and grep() to AppleScript
by ambrus (Abbot) on Nov 24, 2009 at 11:29 UTC

    Indeed, you need to wrap it that way otherwise the site gets syntax coloring and reindenting wrong. You also need to add use warnings; use strict; though, or it will get rejected on the base that you'd find the trivial errors if you enabled those.