in reply to 'perl -e' and '__DATA__' What's wrong?
If AppleScript provides a way to open a file for output, write variables to that file, and close it, then the perl script could simply open a given file, and read from that instead of from __DATA__ -- or I suppose you could go to the trouble of writing the whole perl script to a file, including the runtime-determined __DATA__ content, then execute it.
Or maybe you could turn things around: have a perl script that invokes AppleScript (via the "osascript" shell command), and reads the data it needs from that? (Just guessing)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'perl -e' and '__DATA__' What's wrong?
by Skeeve (Parson) on Dec 10, 2007 at 11:37 UTC | |
by shmem (Chancellor) on Dec 10, 2007 at 12:41 UTC | |
by Skeeve (Parson) on Dec 11, 2007 at 09:06 UTC |