Súbor: [Platon] / iotta / Iotta / Input / RCS.pm (stiahnutie)
Revízia 1.1.1.1, Sun Feb 16 15:48:12 2003 UTC (20 years, 3 months ago) by yenar
Zmeny od 1.1: +0 -0
[lines]
initial import of iotta into platon cvs
|
package Iotta::Input::RCS;
use strict;
require Iotta::Elem;
our @ISA = ("Iotta::Elem");
sub run {
my $self = shift;
my $meta = shift;
my $data;
my $file = $$meta{input};
$$meta{input} =~ s/,v$//;
print STDERR " loading...\n";
open (FILE, "co -p $file 2> /dev/null |") || return 1;
while (<FILE>) {
$data .= $_;
}
close FILE;
$self->next->run ($meta, $data) if ($self->next);
return 0;
}
#sub initialize {
# my $self = shift;
# $self->SUPER::initialize (@_);
#}
1;
Platon Group <platon@platon.sk> http://platon.sk/
|