Treex::Core::Files - helper class for iterating over filenames
version 0.08399
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){ ... }
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.
Martin Popel <popel@ufal.mff.cuni.cz>
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:
Non-ASCII character seen before =encoding in '©'. Assuming UTF-8
To install Treex::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Core
CPAN shell
perl -MCPAN -e shell install Treex::Core
For more information on module installation, please visit the detailed CPAN module installation guide.