Changeset 9973 for lib

Show
Ignore:
Timestamp:
04/17/06 04:46:27 (3 years ago)
Author:
audreyt
Message:

* v6.pm - jump to .pmc when possible.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lib/v6.pm

    r9816 r9973  
    22 
    33use strict; 
     4use Filter::Util::Call; 
     5 
     6sub import { 
     7    my ($package, $filename, $line) = caller; 
     8    my $f = do { 
     9        open my $fh, '<', $filename.'c'; 
     10        local $/; 
     11        readline($fh); 
     12    }; 
     13    filter_add(sub { 
     14        filter_del(); 1 while filter_read(); $_ = $f; 1; 
     15    }); 
     16} 
     17 
     181; 
     19__END__ 
    420use Inline; # this is going away soon 
    521use Filter::Simple;