Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Domain-PublicSuffix CPAN distribution.

Report information
The Basics
Id: 38888
Status: resolved
Priority: 0/
Queue: Domain-PublicSuffix

Owner: NMELNICK [...]
Requestors: cpan [...]

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

Subject: Can't use dataFile option
Download (untitled) / with headers
text/plain 515b
Using the example on the cpan page I get Can't use string ("dataFile") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.8/Class/ line 122. Here is the code to produce the error #!/usr/bin/perl use Domain::PublicSuffix; my $pubSuf = new Domain::PublicSuffix ( dataFile => '/tmp/effective_tld_names.dat' ); and the file does exist [getnotifyd@dev01 ~]$ ls -l /tmp/effective_tld_names.dat -rw-r--r-- 1 getnotifyd getnotifyd 56750 Aug 31 19:15 /tmp/effective_tld_names.dat
Download (untitled) / with headers
text/plain 641b
Thanks for this bug, and my apologies for it taking so long to get through. I have released 0.04 to CPAN with the fix for this problem in place. Part of the issue was incorrect documentation on my part to get Class::Accessor::Fast to "Do The Right Thing" -- this module was originally done for a personal project in Moose, and I didn't fix the docs. The other issue, as you found, was incorrect logic when parsing the actual data file if it wasn't in Domain::PublicSuffix::Default. This has been fixed. When 0.04 hits the mirrors, please let me know how this works for you. The tests seem to pass, I hope everything goes well for you.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to