Z
zoul
Hello!
I have a small Perl application that consists of a single Perl script.
I'd like to improve it and split the code into modules, so that it is
easier for me to work on it. But I like the single-file approach,
because it is so simple - all my users have to do is download a
single file and place it in their ~/bin or wherever they like. If I
split the application into modules, I will have to think of some more
complicated installation procedure.
I thought maybe there was some module to put all the files together
into one single Perl script that would automatically load the modules
and then run the code? This way I could split the code into modules,
work on the modularized code and then create a special all-in-one
script for distribution. Note that I do not want some
auto-decompressing gizmo that would dump the modules on the appropriate
places in the system, I just want the code to stay in one single file
on the user system. I am also not trying to solve module dependencies
- I just want *my* modularized code to stay in a single file. (But I
want to be able to work on separate files while developing, because it
is pain to jump around in one large file.)
Thanks, T.
I have a small Perl application that consists of a single Perl script.
I'd like to improve it and split the code into modules, so that it is
easier for me to work on it. But I like the single-file approach,
because it is so simple - all my users have to do is download a
single file and place it in their ~/bin or wherever they like. If I
split the application into modules, I will have to think of some more
complicated installation procedure.
I thought maybe there was some module to put all the files together
into one single Perl script that would automatically load the modules
and then run the code? This way I could split the code into modules,
work on the modularized code and then create a special all-in-one
script for distribution. Note that I do not want some
auto-decompressing gizmo that would dump the modules on the appropriate
places in the system, I just want the code to stay in one single file
on the user system. I am also not trying to solve module dependencies
- I just want *my* modularized code to stay in a single file. (But I
want to be able to work on separate files while developing, because it
is pain to jump around in one large file.)
Thanks, T.