Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Constant redefined

by tlm (Prior)
on May 31, 2005 at 02:58 UTC ( [id://461910]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
      no warnings;
      use constant TEST => 2;
    }
    
  2. or download this
    % perl -Mstrict -wle 'use constant x => 1; { no warnings; use constant
    + x => 4; } print x'
    Constant subroutine main::x redefined at /opt/lib/perl5/5.8.3/constant
    +.pm line 108.
    4
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2025-03-27 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (69 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.