Skip Menu |

This queue is for tickets about the Business-Tax-VAT-Validation CPAN distribution.

Report information
The Basics
Id: 101397
Status: rejected
Priority: 0/
Queue: Business-Tax-VAT-Validation

People
Owner: Nobody in particular
Requestors: andy.newby [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Member state issue - wrong docs
Date: Thu, 8 Jan 2015 08:40:14 +0000
To: bug-Business-Tax-VAT-Validation [...] rt.cpan.org
From: Andy Newby <andy.newby [...] gmail.com>
Hi, Looks like your documentation is wrong for the example: if ($hvatn->check($VAT, [$member_state])){ Should be: if ($hvatn->check($VAT, $member_state)){ i.e no [ ] I was wondering why it was telling me that I wasn't passing in a valid MS ... but after debugging, it turned out it just wanted a string :) Cheers Andy Newby *Email:* andy@ultranerds.co.uk *WWW: *http://www.ultranerds.co.uk *Mobile: * 07769 201 576
On 2015-01-08 08:40:43, andy.newby@gmail.com wrote: Show quoted text
> Hi, > > Looks like your documentation is wrong for the example: > > if ($hvatn->check($VAT, [$member_state])){ > > > Should be: > > if ($hvatn->check($VAT, $member_state)){ > > i.e no [ ]
I think in this case the author was using [] to denote an optional argument as usually seen in command-line documentation as opposed to suggesting it should be passed within an arrayref - this could be made clearer, though. (*Very* late reply, I know, but figured it should be on record for anyone else who finds this.)