This works:
############
lappend auto_path <path to MyPkg>
package require MyPkg
set MyList [::MyPkg::genList]
puts $MyList
But this does not - throws a parent namespace error:
############
lappend auto_path <path to MyPkg>
package require MyPkg
proc lclProc {} {
set MyList [::MyPkg::genList]
puts $MyList
}
lclProc
I'd like to know what I'm doing wrong here
############
lappend auto_path <path to MyPkg>
package require MyPkg
set MyList [::MyPkg::genList]
puts $MyList
But this does not - throws a parent namespace error:
############
lappend auto_path <path to MyPkg>
package require MyPkg
proc lclProc {} {
set MyList [::MyPkg::genList]
puts $MyList
}
lclProc
I'd like to know what I'm doing wrong here