in reply to Re: ODBC related perl module
in thread ODBC related perl module

I dont understand why it is written ::ODBC_Connect , it should be modulename::ODBC_Connect. In that script nowhere ODBC_Connect method is defined.so obviously it from a module then why only ::ODBC_Connect is used instead of modulename::ODBC_Connect .

Replies are listed 'Best First'.
Re^3: ODBC related perl module
by Corion (Patriarch) on Aug 13, 2014 at 11:35 UTC
    ::ODBC_Connect($DSN) will call the subroutine ODBC_Connect in the empty (main) namespace.

    If no such subroutine exists there, maybe one of the other modules exports such a subroutine?