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 :)
In reply to Re: Calling external subroutine from a package
by Anonymous Monk
in thread Calling external subroutine from a package
by badoosan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |