Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Problem with constant pragma and some hash definitions

by particle (Vicar)
on Jul 21, 2003 at 12:59 UTC ( [id://276247]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Problem with constant pragma and some hash definitions
in thread Problem with constant pragma and some hash definitions

there is another option you left out, which makes use of the unary "+" operator.

perl -MO=Deparse -e "use constant FOO => 5; print +FOO,qq{\n};"

which parses correctly. this syntax is idiomatic, and is the method i would prefer.

~Particle *accelerates*

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found