App::Sequence - subroutine engine
Version 0.0508
apseq sequence.as module.pm config.csv
or
apseq argument.meta
When you install App::Sequence, apseq script is install at the same time. you can use apseq script on command line as the following way.
apseq script receive three type of files.
apseq script receive three type of file, and execute subroutines.
File must be written by utf8.
Sequence file must be end with .as
Sequence file format is
get_html( c.id, c.passwd ) : r.html edit( r.html, c.encoding ) : stdout
I assume that you want to get html file on the web and edit the html file by using an encoding and print STDOUT.
you pass argumet to subroutine and save return value. and saved return value is used in next subroutine.
Module file must be end with .pm
Module file is perl script that subroutine is defined.
sub get_html{ my ( $id, $passwd ) = @_; my $html; # ... return $html; } sub edit{ my ( $html, $encoding ) = @_; my $output; # ... return $output; } 1; # must be true value.
Do not forget that last line must be true value.
Config file must be end with .csv, .yml, .xml, or .ini
CSV file first line is header.
CSV file format is
name,age kimoto,29 ken,13
This is converted to
[ { name => 'kimoto', age => '29' }, { name => 'ken', age => '13' } ]
This is used in Sequence file. c.name, c.age, etc.
CSV file is useful to run same sequence repeatedly.This sample repeat sequence two times.
YAML file is loaded by YAML::LoadFile.
YAML format is
name: kimoto age: 29 # last line is needed!
Do not forget that space is needed after colon( : ) and last line is need;
{ name => 'kimoto', age => '29' }
See also YAML
XML file is loaded by XML::Simple::XML
<?xml version="1.0" encoding="UTF-8" ?> <config> <name>kimoto</name> <age>29</age> </config>
/This is converted to
Windows ini file is loaded by Config::Tiny
Windows ini format is
[person] name=kimoto age=29
This is used in Sequence file. c.person.name, c.person.age, etc.
See also Config::Tiny
You can write argument of apseq in Meta file.
Meta file must be end with .meta
Meta file format is
sequence.as module.pm config.csv
You can apseq script by passing Meta file.
apseq argumets.meta
App::Sequence is used through apseq script. so I do not explain each method.
no explaination
target directory
meta file
Yuki Kimoto <kimoto.yuki at gmail.com>
<kimoto.yuki at gmail.com>
Please report any bugs or feature requests to bug-app-sequence at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-Sequence. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-app-sequence at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc App::Sequence
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-Sequence
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/App-Sequence
CPAN Ratings
http://cpanratings.perl.org/d/App-Sequence
Search CPAN
http://search.cpan.org/dist/App-Sequence/
Plugger, YAML, XML::Simple, Config::Tiny
Copyright 2008 Yuki, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Sequence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Sequence
CPAN shell
perl -MCPAN -e shell install App::Sequence
For more information on module installation, please visit the detailed CPAN module installation guide.