| 6 |
1 |
| our $rschema = ["str",[{description=>"\nCurrency pair is string in the form of *currency1*/*currency2*, where\n*currency1* is called the base currency while *currency2* is the quote (or\nprice) currency. Both must be known currency codes (e.g. USD, or IDR).\n\nCurrency code is checked against <pm:Locale::Codes::Currency_Codes>.\n\nWill be normalized to uppercase.\n\n",examples=>[{valid=>0,value=>""},{valid=>0,value=>"idr"},{valid=>1,validated_value=>"USD/IDR",value=>"usd/idr"},{valid=>0,value=>"usd idr"},{valid=>0,value=>"usd/foo"}],match=>qr(\A\S+/\S+\z),summary=>"Fiat currency pair, e.g. USD/IDR","x.perl.coerce_rules"=>["From_str::to_currency_pair"]}],["str"]]; |