in reply to Invalid use of constant pragma?

Using the following code, I cannot duplicate your problem. I am also running ActiveState 5.6.1 build 629.

#!/usr/bin/perl -w use strict; use constant PROJECT => $ARGV[0]; use constant ARCHIVE => $ARGV[1]; print "PROJECT value = " . PROJECT. "\n"; print "ARCHIVE value = " . ARCHIVE. "\n\n"; if (ARCHIVE eq "") { warn( "No archive file was supplied.\n"); exit 1201; } print "Still running\n";
This consistantly gives the warning: No archive file was supplied. and then exits.

I tried to reproduce your example accurately. Is there something I left out of my code that might account for your strange behaviour?

Vavoom