> If I define a function just in the freespace of a file and have included in > that file two packages which are bracketed in like: > > sub function {} > > package 1; > {} > > package 2; > {} > > > > How do I access the function (make a function call) from within one of the > packages? > > is it main::function or is it something else. Yes. > Also, is it ok to call functions which take no parameters as just the > function name. like $var = function; as opposed to $var = function(); Yes.
- scope Nick Transier
- Me