- Timestamp:
- 08/28/05 19:21:32 (3 years ago)
- Files:
-
- 1 modified
-
lib/Inline/Pugs.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lib/Inline/Pugs.pm
r5532 r6535 2 2 3 3 use strict; 4 use vars qw<$VERSION @ISA>; 5 use constant MAGIC => 6 'my$Z= =$*IN;while 1{$_=perl eval eval=$*IN;print$Z;say$!//$_;print$Z;flush$*OUT}'; 7 use constant COOKIE => rand(); 8 use Perl6::Pugs; 9 use IPC::Open2; 4 use File::Basename; 5 use constant LIBDIRS => qw< 6 PIL-Run 7 Perl6-Value 8 Perl6-Container 9 Perl6-MetaModel 10 >; 11 use lib (map { 12 dirname(__FILE__) . "/../../perl5/$_/lib", 13 } LIBDIRS); 10 14 use Data::Dumper; 15 use vars qw< @ISA $VERSION >; 11 16 12 17 @ISA = 'Inline'; … … 76 81 *{"$pkg\::$sym"} = sub { 77 82 local $Data::Dumper::Terse = 1; 78 my @args = map { $self->quote_pugs(Dumper($_)).'.eval'} @_;83 my @args = map { Dumper($_) } @_; 79 84 $self->eval_pugs( 80 85 "$sym(".join(',', @args).")" … … 83 88 } 84 89 } 90 91 sub init_pugs { 92 use PIL::Run::MainX; 93 use PIL::Run::EvalX; 94 use PIL::Run::ApiX; 95 } 96 97 sub eval_pugs { 98 my $self = shift; 99 p6_eval($_[0]); 100 } 101 102 =begin comment 85 103 86 104 sub init_pugs { … … 102 120 return eval $out; 103 121 } 122 123 =cut 104 124 105 125 sub quote_pugs {
