conflict between "use constant" and perlapp?
am 01.02.2007 15:59:12 von Deane.RothenmaierThis is a multipart message in MIME format.
--===============1372355693==
Content-Type: multipart/alternative;
boundary="=_alternative 00525EB286257275_="
This is a multipart message in MIME format.
--=_alternative 00525EB286257275_=
Content-Type: text/plain; charset="us-ascii"
Wizards,
When I run my program from the command line, all is well, but when I
compile it to an executable using perlapp, I get the following error:
"Constant name 'HASH(0xb6acd0)' has invalid characters at foo.pl line 39.
BEGIN failed--compilation aborted at foo.pl line 41."
and the script dies. Here's WHAT's causing the problem:
use constant {
CONT => 0, # THIS is line 39
EXIT => 1
};
Anybody got a thought as to WHY that's causing a problem? Again, it works
fine when interpreted, only a compiled EXE has the problem.
Thanks for your thoughts.
Deane Rothenmaier
Systems Architect
Walgreens Corp.
847-914-5150
"On two occasions I have been asked [by members of Parliament], 'Pray, Mr.
Babbage, if you put into the machine wrong figures, will the right answers
come out?' I am not able rightly to apprehend the kind of confusion of
ideas that could provoke such a question." -- Charles Babbage
--=_alternative 00525EB286257275_=
Content-Type: text/html; charset="us-ascii"
Wizards,
When I run my program from the command line, all is well, but when I compile it to an executable using perlapp, I get the following error:
"Constant name 'HASH(0xb6acd0)' has invalid characters at foo.pl line 39. BEGIN failed--compilation aborted at foo.pl line 41."
and the script dies. Here's WHAT's causing the problem:
use constant {
CONT => 0, # THIS is line 39
EXIT => 1
};
Anybody got a thought as to WHY that's causing a problem? Again, it works fine when interpreted, only a compiled EXE has the problem.
Thanks for your thoughts.
Deane Rothenmaier
Systems Architect
Walgreens Corp.
847-914-5150
"On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." -- Charles Babbage
--=_alternative 00525EB286257275_=--
--===============1372355693==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1372355693==--