NAME
Treex::Core::Files - helper class for iterating over filenames
VERSION
version 0.08083
SYNOPSIS
package
My::Class;
use
Moose;
has
from
=> (
is
=>
'ro'
,
isa
=>
'Treex::Core::Files'
,
coerce
=> 1,
handles
=> [
qw(next_filename current_filename)
],
);
# and then
my
$c
= My::Class(
from
=>
'f1.txt f2.txt.gz @my.filelist'
);
while
(
defined
(
my
$filename
=
$c
->next_filename)){ ... }
#or
while
(
my
$filehandle
=
$c
->next_filehandle){ ... }
DESCRIPTION
TODO
@filelist convention is used in several tools, e.g. javac or 7z. For a large number of files, list the the file names in a file - one per line. Then use the list file name preceded by an @ character.
AUTHOR
Martin Popel <popel@ufal.mff.cuni.cz>
COPYRIGHT AND LICENSE
Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 121:
Non-ASCII character seen before =encoding in '©'. Assuming UTF-8