in reply to Re: splitting a source file
in thread splitting a source file

use "subs.pl";

Did you try it?

#!/usr/bin/perl use strict; use warnings; use "subs.pl"; foo(); bar(); syntax error at use_subs.pl line 6, near "use "subs.pl"" Execution of use_subs.pl aborted due to compilation errors. #!/usr/bin/perl use strict; use warnings; use subs.pl; foo(); bar(); syntax error at use_subs.pl line 6, near "use subs." Execution of use_subs.pl aborted due to compilation errors.

Replies are listed 'Best First'.
Re^3: splitting a source file
by Anonymous Monk on Oct 24, 2007 at 20:52 UTC
    I'm having problems running your example on my Vista desktop. Is there anything special I need or is there a bug in your example?

      The bug was the point; use doesn't work that way. That's why I think use with a real module is simpler.