Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 browsing the Monastery: (4)
As of 2018-12-12 04:46 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (57 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!