At 4:01 PM +0100 3/5/2002, Axel Rose wrote: >I tried to integrate perltidy as a BBEdit Perl Filter without success. >Does anybody know how to access the file path a filter works on? >($ARGV is empty, $ARGV[0] refers to "...:Cleanup at Startup:myfile.pl§")
BBEdit filters operate on STDIN. I usually set -n or -p and leverage the implicit loop structure. That's what I did for working with Text::Autoformat. (I bring the whole file into a variable with -n and the process it with printing in the END{} block.) A simple wrapper may provide the necessary framework to accomplish what you're looking for. -C -- Charles Albrecht Euonymic Solutions [EMAIL PROTECTED] P.O. Box 300623 C>303.619.7596 F>978.334.3061 Denver, Colorado 80203-0623 http://www.euonymic.net/~charlesa/cv/