How do I include a Perl module that's in a different directory?

后端 未结 6 2404
天涯浪人
天涯浪人 2020-12-07 16:32

How do I include a Perl module that\'s in a different directory? It needs to be a relative path from the module that\'s including it.

I\'ve tried

p         


        
6条回答
  •  醉梦人生
    2020-12-07 17:10

    'use lib' can also take a single string value...

    #!/usr/bin/perl
    use lib '';
    use ;
    

提交回复
热议问题