Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 15. marec 2026

Súbor: [Platon] / iotta / Iotta / Feeder / Files.pm (stiahnutie)

Revízia 1.1, Sun Mar 30 11:33:53 2003 UTC (22 years, 11 months ago) by yenar

simple feeder operating on filelist [Files.pm]

package Iotta::Feeder::Files;
use strict;
require Iotta::Elem;
our @ISA = ("Iotta::Elem");

sub run {
    my $self = shift;
    my $meta = shift;
    for (split (/,[ \t]*/, $self->files)) {
        $self->file_proc ($_, $meta);
    }
}

sub file_proc {
    my $self = shift;
    my $f = shift;
    my %meta = %{$self->meta};
    print STDERR "input=$f\n";
    $meta{input} = $f;
    $self->next->run(\%meta, 0) if ($self->next);
}

sub setup {
    my $self = shift;
    my $o = shift;
    $self->files ($$o{files});
}

sub initialize {
    my $self = shift;
    $self->SUPER::initialize (@_);
    $self->{files}="";
    $self->{meta}={};
}

1;

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok