in reply to Combining modules into a single file
Well, you could potentially do something like this:
package Foo; sub bar { print "Bar\n" }; package main; Foo::bar();
In other words, you could just cat the files together, add a package declaration before the the code in the main program and it should work with a bit of tweaking (for example, you want to take out use or require statements that pull in Foo).
However, why do you want to do this? Maybe there's an easier way to solve your actual problem.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Combining modules into a single file
by sabkat (Acolyte) on Oct 11, 2002 at 23:42 UTC |