Re: How do I arrange for Makefile.PL to create a modulino instance script?

2012-09-04 Thread Smylers
Buddy Burden writes: > Guys, > > > It's fairly unusually for a piece of code to be appropriate both as > > a stand-alone program and as a module loaded by other programs. ... > > Perhaps David's original question would have been more clear with a > slightly more targeted footnote reference: > ht

Re: How do I arrange for Makefile.PL to create a modulino instance script?

2012-09-04 Thread David Cantrell
On Sat, Sep 01, 2012 at 01:40:01AM -0700, Buddy Burden wrote: > > It's fairly unusually for a piece of code to be appropriate both as a > > stand-alone program and as a module loaded by other programs. ... > Perhaps David's original question would have been more clear with a > slightly more targete

Re: How do I arrange for Makefile.PL to create a modulino instance script?

2012-09-01 Thread Buddy Burden
Guys, > It's fairly unusually for a piece of code to be appropriate both as a > stand-alone program and as a module loaded by other programs. ... Perhaps David's original question would have been more clear with a slightly more targeted footnote reference: http://www.drdobbs.com/scripts-as-module

Re: How do I arrange for Makefile.PL to create a modulino instance script?

2012-09-01 Thread Smylers
David Christensen writes: > On 08/31/12 07:53, Leon Timmermans wrote: > > >Why do you want to do this? > > So that after "make install" my Perl scripts can say "use MyModulino" > and I can invoke the modulino from the command line via "mymodulino > ARGS". Yes, but why do you want to do _that_?

Re: How do I arrange for Makefile.PL to create a modulino instance script?

2012-08-31 Thread David Christensen
On 08/31/12 07:53, Leon Timmermans wrote: Why do you want to do this? So that after "make install" my Perl scripts can say "use MyModulino" and I can invoke the modulino from the command line via "mymodulino ARGS". David

Re: How do I arrange for Makefile.PL to create a modulino instance script?

2012-08-31 Thread Leon Timmermans
On Fri, Aug 31, 2012 at 3:29 PM, David Christensen wrote: > module-authors: > > I am working on a modulino [1] and would like to use ExtUtils::MakeMaker to > generate a Makefile such that "make" (or "make all") copies the module file > (lib/MyModulino.pm) to a script file (perl-bin/mymodulino.pl)

How do I arrange for Makefile.PL to create a modulino instance script?

2012-08-31 Thread David Christensen
module-authors: I am working on a modulino [1] and would like to use ExtUtils::MakeMaker to generate a Makefile such that "make" (or "make all") copies the module file (lib/MyModulino.pm) to a script file (perl-bin/mymodulino.pl) and sets the execute bit. Any suggestions? TIA, David