Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2018-10-17 20:03 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (97 votes). Check out past polls.