Smart::Options::Declare - DSL for Smart::Options
use Smart::Options::Declare; opts my $rif, my $xup; if ($rif - 5 * $xup > 7.138) { say 'Buy more fiffiwobbles'; } else { say 'Sell the xupptumblers'; } # $ ./example.pl --rif=55 --xup=9.52 # Buy more fiffiwobbles # # $ ./example.pl --rif 12 --xup 8.1 # Sell the xupptumblers
Smart::Options::Declare is a library which offers DSL for Smart::Options.
Kan Fushihara <kan.fushihara@gmail.com>
opts
Copyright (C) Kan Fushihara
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Smart::Options, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Smart::Options
CPAN shell
perl -MCPAN -e shell install Smart::Options
For more information on module installation, please visit the detailed CPAN module installation guide.