- Timestamp:
- 09/05/05 23:28:04 (3 years ago)
- Files:
-
- 1 modified
-
lib/pugs/run.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lib/pugs/run.pod
r6689 r6750 70 70 71 71 causes Pugs to execute the program using C<I<backend>>. Currently, valid 72 backends are C<Pugs>, C<Parrot>, C<PIR>, and C<Haskell>. 72 backends are C<Parrot> and C<PIR>. 73 74 The JavaScript backend provides an interactive shell in 75 F<perl5/PIL2JS/jspugs.pl>; The interactive compiler and evaluator of the Perl 5 76 backend can be found in F<perl5/PIL-Run/crude_repl.pl>. 73 77 74 78 =item C<-CI<backend>> 75 79 76 80 causes Pugs to compile the program using C<I<backend>>. Currently, valid 77 backends are C<Pugs>, C<Parrot>, C<PIR>, and C<Haskell>. 81 backends are C<Pugs>, C<Parrot>, C<PIR>, C<Haskell>, and C<PIL> with its 82 variants C<Perl5>, C<JSON>, and C<Binary>. 78 83 79 84 Note that, as with C<-c>, C<BEGIN {...}> and C<CHECK {...}> blocks, as well as 80 C<use Module> , are still executed. So don't try to compile potentially unsafe81 code!85 C<use Module> statements, are still executed. So don't try to compile 86 potentially unsafe code! 82 87 83 88 =item C<-MI<module>> … … 175 180 "unsafe" -- e.g. operations which use IO -- unavailable to a Perl program. 176 181 177 $ env PUGS_SAFEMODE=1 pugs -e ' say "I am unsafe"'178 *** No compatible subroutine found: "& say"179 at -e line 1, column 1- 9182 $ env PUGS_SAFEMODE=1 pugs -e 'unlink "foo"' 183 *** No compatible subroutine found: "&unlink" 184 at -e line 1, column 1-13 180 185 181 186 =item C<PUGS_PARROT_OPTS>
