Initializing perl variables using eval

前端 未结 3 1851
暖寄归人
暖寄归人 2021-01-05 06:18

I\'m guessing this should be something obvious to those knowing Perl, but I simply don\'t get it.. I also guess it has to do with problems described in Perl scoping « darkne

3条回答
  •  误落风尘
    2021-01-05 07:07

    jjolla, you can use require $filename; or require "filename"; to include a file that has perl syntax. this would declare any variables you need as globals. But as always, be careful with Globals.

提交回复
热议问题