K
Khamis Abuelkomboz
Hi
I'm trying to unterstand the namescoping of perl, I found the following example:
package B::Assembler;
....
sub B::Asmdata:UT_U8 {..}
How do you define the full namespaced sub name?
Is it B::Assembler::B::Asmdata:UT_U8 or only B::Asmdata:UT_U8 ?
How you would call the function PUT_U8 from outside and inside this package?
I think the subs following a package definition belong to this package.
thanks
khamis
--
Try Code-Navigator on http://www.codenav.com
a source code navigating, analysis and developing tool.
It supports following languages:
* C/C++
* Java
* .NET (including CSharp, VB.Net and other .NET components)
* Classic Visual Basic
* PHP, HTML, XML, ASP, CSS
* Tcl/Tk,
* Perl
* Python
* SQL,
* m4 Preprocessor
* Cobol
I'm trying to unterstand the namescoping of perl, I found the following example:
package B::Assembler;
....
sub B::Asmdata:UT_U8 {..}
How do you define the full namespaced sub name?
Is it B::Assembler::B::Asmdata:UT_U8 or only B::Asmdata:UT_U8 ?
How you would call the function PUT_U8 from outside and inside this package?
I think the subs following a package definition belong to this package.
thanks
khamis
--
Try Code-Navigator on http://www.codenav.com
a source code navigating, analysis and developing tool.
It supports following languages:
* C/C++
* Java
* .NET (including CSharp, VB.Net and other .NET components)
* Classic Visual Basic
* PHP, HTML, XML, ASP, CSS
* Tcl/Tk,
* Perl
* Python
* SQL,
* m4 Preprocessor
* Cobol