Changeset 3891 for src/perl5

Show
Ignore:
Timestamp:
05/26/05 02:46:18 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5482
Message:

* perl5_eval now honours Perl 6 side context too.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl5/perl5.c

    r3887 r3891  
    171171perl5_eval(char *code, int cxt) 
    172172{ 
    173     /* XXX - does not respect context yet */ 
    174     return (eval_pv(code, TRUE)); 
     173    dSP; 
     174    SV* sv = newSVpv(code, 0); 
     175 
     176    eval_sv(sv, cxt); 
     177    SvREFCNT_dec(sv); 
     178 
     179    SPAGAIN; 
     180    sv = POPs; 
     181    PUTBACK; 
     182 
     183    return sv; 
    175184} 
    176185