Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Constant redefined

by thcsoft (Monk)
on May 31, 2005 at 11:28 UTC ( [id://461999]=note: print w/replies, xml ) Need Help??


in reply to Constant redefined

err... honestly: you are trying to assign two different values to the same constant. apart from that you might as well tell an orange to be green and yellow at exactly the same spot, i would be especially interested in the reasons you pretend to have for such a funny idea.

it is not by accident, that there exists a difference between a constant and a variable. and neither is it arbitrary, that variables use to differ by their names.

language is a virus from outer space.

Replies are listed 'Best First'.
Re^2: Constant redefined
by Ctrl-z (Friar) on May 31, 2005 at 12:07 UTC

    i would be especially interested in the reasons you pretend to have for such a funny idea.

    Not to answer for the OP, but I have a module that traverses namespaces wrapping all functions in a closure. This is equivalent to the problem above, though the intention is not to redefine constants.

    it is not by accident, that there exists a difference between a constant and a variable

    No, but it is an arbitrary implementation detail that constants would be functions that rely on folding in the parser.




    time was, I could move my arms like a bird and...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2025-03-17 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (54 votes). Check out past polls.