> >> Ok, I'll compile a summary of what perl flags run under the BBEdit 5.1.1 >>demo and post it to the list. > Here's a few tests .. they each had a print "perl -switch ok \n" line. comments? perl -0 ok perl -a ok perl -c # <AppleEvent> syntax OK # Can't emulate -e on #! line. <this may be a demo feature> perl -Fpattern ok perl -h Usage: MacPerl [switches] [--] [programfile] [arguments] -0[octal] specify record separator (\0, if no argument) -a autosplit mode with -n or -p (splits $_ into @F) -c check syntax only (runs BEGIN and END blocks) -d[:debugger] run scripts under debugger -D[number/list] set debugging flags (argument is a bit mask or flags) -e 'command' one line of script. Several -e's allowed. Omit [programfile]. -F/pattern/ split() pattern for autosplit (-a). The //'s are optional. -i[extension] edit <> files in place (make backup if extension supplied) -Idirectory specify @INC/#include directory (may be used more then once) -l[octal] enable line ending processing, specifies line teminator -[mM][-]module.. executes `use/no module...' before executing your script. -n assume 'while (<>) { ... }' loop arround your script -p assume loop like -n but print line also like sed -P run script through C preprocessor before compilation -s enable some switch parsing for switches after script name -S look for the script using PATH environment variable -T turn on tainting checks -u dump core after parsing script -U allow unsafe operations -v print version number and patchlevel of perl -V[:variable] print perl configuration information -w TURN WARNINGS ON FOR COMPILATION OF YOUR SCRIPT. -x[directory] strip off text before #!perl line and perhaps cd to directory perl -l[0e] ok perl -mCPAN # Can't use ' ' after -mname. perl -m"CPAN" # Can't use '"' after -mname. <should there have been a space after the -m ?> <but ...> perl -MCPAN ok perl -n perl -p perl -P # Can't emulate -P on #! line. perl -s ok perl -T # Too late for "-T" option. perl -u # Believe me, you don't want to use "-u" on a Macintosh. <I like it> perl -U ok perl -v This is perl, version 5.004 Copyright 1987-1997, Larry Wall Macintosh port Copyright 1991-1998, Matthias Neeracher Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. perl -V # Can't emulate -V on #! line. perl -w ok perl -x # Can't emulate -x on #! line. #!perl -e 'print "Hello world\n"' # Can't emulate -e on #! line. #!perl -d starts up perl debugger window (not BBEdit window) Loading DB routines from perl5db.pl version 1 Emacs support available. Enter h or `h h' for help. DB::fake::(External_HD:MacPerl_Src:perl:lib:perl5db.pl:2061): 2061: "Debugged program terminated. Use `q' to quit or `R' to restart."; DB<1> # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org