There is an interface.pl file, it contains:
use strict; use warnings; use parser; my $PROGNAME = "Spark"; my $PROGVERSION = 0.1; When starting, it gives an error:
parser.pm did not return a true value at /Users/stolz/HolyLanguage/Spark/interface.pl line 3. BEGIN failed--compilation aborted at /Users/stolz/HolyLanguage/Spark/interface.pl line 3. parser.pm file:
package Parser; { my $val; 1; } and if instead of 1 I write return 1 , it gives me an error:
Can't return outside a subroutine at /Users/stolz/HolyLanguage/Spark/parser.pm line 4. How can this problem be solved?