Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Creating constant arrays or hashes

by jlistf (Monk)
on Aug 02, 2000 at 20:20 UTC ( [id://25763]=note: print w/replies, xml ) Need Help??


in reply to Creating constant arrays or hashes

one of the best ways to make constants in general is using prototyped subroutines (in fact thats one of the only things prototypes are good for). so:
sub PI () { return 3.14 }
or:
sub constantArray () { return ( 4, 5, 6) }
that should do it.

jeff

Log In?
Username:
Password:

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

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

    No recent polls found