I read what was out there and I have to ask you, the Elders about this one
I have a main.h file which I successfully converted to a MAP::Vars module with h2xs.
Now, that I have this module and I get no complaints when I do use MAP::Vars in my script, how do I actually access all the variables set up in the main.h file?
This is my script, and I need help understanding how to use the variables/constants set by the .h file
#!/usr/bin/perl
use MAP::Vars;
#EnStatus {
#St_NetOnNorm
print "Hello World! EnStatus{St_NetOnNorm} = $EnStatus{St_NetOnNorm} \
+n";
exit;
After this one, I'm donating perlmonks a 1000 Russian roubles (~$40), which is a lot for me here in Russia! Many thanks! And here is the huge main.h file: http://pashanoid.ru/main.h
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.