What does “1;” mean in Perl?

前端 未结 7 811
梦如初夏
梦如初夏 2020-12-24 11:36

I have come across a few Perl modules that for example look similar to the following code:

package MyPackage;

use strict;
use warnings;
use constant PERL510         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 12:13

    I don't know much about Perl, but usually you create a scope using curly braces. Probably $somevar shoudln't be available globally?

提交回复
热议问题