The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebSource::File : Fetchs it input from a file (or standard input if none is specified)

DESCRIPTION

A File operator returns as item each line read from a file.

<ws:file name="opname" [ filename="file" ] forward-to="ops" />

The forward-to and name attributes have there usual signification.

The filename attribut allows to set which file the items are read from.

SYNOPSIS

  $file = WebSource::File->new(wsnode => $node);

  # for the rest it works as a WebSource::Module

METHODS

$source = WebSource->new(desc => $node);

Create a new File module;

$file->handle($env);

Reads one line from the file and gives it as output;

SEE ALSO

WebSource::Module