in reply to Perl Module for dealing with number ranges

So anyone know of a module that does this, or should I just keep pasting my code into each script I write that needs this functionality?

Just in case the first two suggestions above turn out to be less or different than what you really want, you could just take that block of code you keep copying, isolate it into a module of your own, place the module in some path that your standard @INC knows about, and "use YourModule;" in whatever script is going to need it.

Taking some bit of code and making it work as a stand-alone module is really simpler than you might expect, and is a very handy skill to have. It's the first thing that should come to mind when you find yourself copy/pasting stuff from one script to another.

  • Comment on Re: Perl Module for dealing with number ranges