Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Invalid use of constant pragma?

by runrig (Abbot)
on Nov 29, 2001 at 03:03 UTC ( [id://128228]=note: print w/replies, xml ) Need Help??


in reply to Invalid use of constant pragma?

You might want (at least to suppress uninitialized warnings, you do use strict and warnings, right?):
# Because of my C++ background use constant PROJECT => (@ARGV) ? $ARGV[0] : ''; use constant ARCHIVE => (@ARGV > 1) ? $ARGV[1] : '';
Hmm, undef should eq '', though with a warning if warnings are enabled. Oh well, the above should fix that also if that's what you're getting.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found