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

Re: Perl/Tk Oddities

by moritz (Cardinal)
on Apr 12, 2008 at 16:40 UTC ( #680004=note: print w/replies, xml ) Need Help??


in reply to Perl/Tk Oddities

3) This isn't Perl/Tk specific, but I feel dumb that I haven't figured out how to do this yet: is there a way to create a file of constants like a C ".h" file would contain?

Your best bet is to write them into a module.

Or you can just dump them in a YAML or XML file and use a module to read those.

Replies are listed 'Best First'.
Re^2: Perl/Tk Oddities
by TomKane (Beadle) on Apr 13, 2008 at 15:28 UTC
    I guess the module that works as read-only would be the ticket. It's a little clumsy though. But thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-08-19 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (187 votes). Check out past polls.

    Notices?