TaskPipe::Task_SourceFromFile - use a file as a data source
This is the standard task for reading from a yaml data file (and outputing the records as an arrayref). You can use this task directly. You should make sure the file the task is reading is in a format which will become an array when read by YAML::XS. For example:
--- - url: https://www.example.com/first_record headers: Referer: https://www.example.com - url: https://www.example.com/second_record Referer: https://www.example.com # ...
In your plan, specify the task as follows:
# (tree format): task: _name: SourceFromFile filename: mydatafile.yml pipe_to: # ...
Tom Gracey <tomgracey@gmail.com>
Copyright (c) Tom Gracey 2018
TaskPipe is free software, licensed under
The GNU Public License Version 3
To install TaskPipe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TaskPipe
CPAN shell
perl -MCPAN -e shell install TaskPipe
For more information on module installation, please visit the detailed CPAN module installation guide.