in reply to Calling external subroutine from a package
See Simple Module Tutorial and Modern Perl
When you do 'dbselect.pl'; or require 'dbselect.pl'; then sub dbSelect gets defined in package main, so its full name is main::dbSelect, and you can call it like main::dbSelect()
But you should turn dbselect.pl into a proper module :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling external subroutine from a package
by badoosan (Initiate) on Oct 15, 2012 at 17:47 UTC | |
|
Re^2: Calling external subroutine from a package
by Anonymous Monk on Oct 15, 2012 at 17:33 UTC |