t/test5
raw| 1 | #!/usr/local/bin/perl |
| 2 | |
| 3 | use lib "lib"; |
| 4 | use lib "../lib"; |
| 5 | use App::Options ( |
| 6 | options => [ "invoice_id", "cust_nm", "price" ], |
| 7 | option => { |
| 8 | invoice_id => {default => 4, type => "integer"}, |
| 9 | cust_nm => {default => "Joe Smith"}, |
| 10 | purchase_dttm => {default => "2003-10-31 23:59:59", type => "datetime"}, |
| 11 | delivery_dt => {type => "date"}, |
| 12 | price => {type => "float"}, |
| 13 | sell_ind => {type => '^(Y|N)$'}, |
| 14 | }, |
| 15 | ); |
| 16 |