App-BPOMUtils-NutritionLabelRef
view release on metacpan or search on metacpan
This option will first save the output to a temporary file, then open a viewer
program to view the temporary file. If a viewer program is not chosen, a
suitable default, e.g. the browser, is chosen.
=back
=head2 Other options
=over
=item B<--help>, B<-h>, B<-?>
Display help message and exit.
=item B<--version>, B<-v>
Display program's version and exit.
=back
=head1 COMPLETION
This script has shell tab completion capability with support for several
shells.
=head2 bash
To activate bash completion for this script, put:
complete -C alg alg
in your bash startup (e.g. F<~/.bashrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.
It is recommended, however, that you install modules using L<cpanm-shcompgen>
which can activate shell completion for scripts immediately.
=head2 tcsh
To activate tcsh completion for this script, put:
complete alg 'p/*/`alg`/'
in your tcsh startup (e.g. F<~/.tcshrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.
It is also recommended to install L<shcompgen> (see above).
=head2 other shells
For fish and zsh, install L<shcompgen> as described above.
=head1 EXAMPLES
=head2 List all nutrient (symbols)
% alg --list-nutrients
Alpha_Linoleic_Acid
Biotin
Ca
Carbohydrate
... 31 more lines ...
VE
VK
Zn
=head2 List all groups (symbols)
% alg --list-groups
0to6mo
1to3y
7to11mo
breastfeeding
general
pregnant
=head2 List all ALG values
% alg
+---------------------+---------------+------+------+
| symbol | group | ref | unit |
+---------------------+---------------+------+------+
| Energy | 0to6mo | 550 | kkal |
| Energy | 7to11mo | 725 | kkal |
... 223 more lines ...
| Myo_Inositol | general | | mg |
| Myo_Inositol | pregnant | | mg |
| Myo_Inositol | breastfeeding | | mg |
+---------------------+---------------+------+------+
=head2 List ALG for vitamin D, for all groups
% alg VD
+---------------+-----+------+
| group | ref | unit |
+---------------+-----+------+
| 0to6mo | 5 | mcg |
| 7to11mo | 5 | mcg |
| 1to3y | 15 | mcg |
| general | 15 | mcg |
| pregnant | 15 | mcg |
| breastfeeding | 15 | mcg |
+---------------+-----+------+
=head2 List ALG for vitamin D, for 1-3 years olds
% alg VD 1to3y
+-----+------+
| ref | unit |
+-----+------+
| 15 | mcg |
+-----+------+
=head2 List ALG for vitamin D, for 1-3 years olds, and compare a value to reference
% alg VD 1to3y 10
+-----+------+------------------+
| ref | unit | %alg |
( run in 1.226 second using v1.01-cache-2.11-cpan-39bf76dae61 )