Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
XP is just a number
 
PerlMonks  

Re: Geo::IPfree module

by Anonymous Monk
on Jul 03, 2012 at 14:58 UTC ( #979728=note: print w/ replies, xml ) Need Help??


in reply to Geo::IPfree module

As Tutorials: Basic debugging checklist teaches, use B::Deparse to see how perl interprets your code

You're missing a semicolon here

Geo::IPfree $db = 'ipscountry.dat';

Next error is in my $geo = Geo::IPfree->new([$db]);

You're probably confused by the Optional Arguments Notation ( Backus–Naur Form )

 new( [$db] ) means that you can use  new(  ) or  new( $db )

The word-documentation for new explains this.


Comment on Re: Geo::IPfree module
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2013-05-22 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (467 votes), past polls