Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
101397
Status:
rejected
Priority:
Low/Low

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

BugTracker
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 
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.)


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.