How can I test a standalone Perl script?

前端 未结 7 1410
太阳男子
太阳男子 2021-02-01 05:07

I have written a small Perl script and now I would like to create a test suite for it. I thought it would be nice to be able to use the script as a module, import t

7条回答
  •  被撕碎了的回忆
    2021-02-01 05:31

    Since brian seems to be asleep right now, here's a pointer to what he calls modulinos. This is basically a recipe for building scripts that act like modules or modules that can be run like scripts. Sounds exactly like what you are looking for.

    Mastering Perl is definitely a book worth reading (and buying).

提交回复
热议问题