in reply to Re: Re: Confused about splitting program into multiple files.
in thread Confused about splitting program into multiple files.
Your main program is package main, and by putting your module's subroutines into package main, they are automatically available for you without exporting.
You probably don't want to here this, but I'll reiterate what the docs and other commenters say. You should really do it the right way and segregate things into separate packages and export only symbols that need to be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Confused about splitting program into multiple files.
by disciple (Pilgrim) on Feb 15, 2004 at 05:05 UTC | |
by tilly (Archbishop) on Feb 15, 2004 at 13:44 UTC | |
by davido (Cardinal) on Feb 15, 2004 at 07:32 UTC | |
by Anonymous Monk on Feb 15, 2004 at 09:09 UTC |