Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Invalid use of constant pragma?

by Vavoom (Scribe)
on Nov 29, 2001 at 03:06 UTC ( [id://128231]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found