Marcel McKinnon > Finance-RawMaterialPrice-0.02 > Finance::RawMaterialPrice

Download:
Finance-RawMaterialPrice-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Finance::RawMaterialPrice - To get the current gold and silver price

SYNOPSIS ^

  use Finance::RawMaterialPrice;
  my $gold_EUR_per_gram   = get_gold_price('dollar');
  my $silver_EUR_per_gram = get_silver_price('euro');

DESCRIPTION ^

This module provides the function get_gold_price to get the current price for one gram gold. It also provides the function get_silver_price to do the equivalent for the silver price. It parses http://www.finanzen.net to get this prices.

For each function call you can specify the money unit you would like to get. I only implemented 'dollar' or 'euro'. If you omit this parameter then the price will be return in Euro.

EXPORT

get_gold_price get_silver_price

SEE ALSO ^

LBMA::Statistics

AUTHOR ^

sdrfnord <sdrfnord@gmx.de>

COPYRIGHT AND LICENSE ^

Copyright (C) 2012-2013 by sdrfnord

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: