Show
Ignore:
Timestamp:
07/27/08 18:44:51 (6 months ago)
Author:
fglock
Message:

[v6.pm] improved perl(), slurp()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • perl5/Pugs-Compiler-Perl6/lib/Pugs/Emitter/Perl6/Perl5.pm

    r21573 r21574  
    802802                || $subname eq 'index' || $subname eq 'undef' || $subname eq 'rand' || $subname eq 'int'  
    803803                || $subname eq 'splice' || $subname eq 'keys' || $subname eq 'values' || $subname eq 'sort'  
    804                 || $subname eq 'chomp' || $subname eq 'lc' || $subname eq 'abs'  
     804                || $subname eq 'chomp' || $subname eq 'lc' || $subname eq 'abs' || $subname eq 'sleep'  
    805805                )  
    806806            { 
     
    840840            if ($subname eq 'open') { 
    841841                return 'Perl6::Internals::open('. _emit_parameter_capture( $n->{param} ) . ')'; 
     842            } 
     843            if ($subname eq 'slurp') { 
     844                return 'Pugs::Runtime::Perl6::IO::slurp'. emit_parenthesis( $n->{param} ); 
    842845            } 
    843846