Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- basic use of modules
February 26, 2008, 3:28 pm
rate this thread
I am reading from a spreadsheet using Spreadsheet::BasicRead, I have
got a big list of variables using saying which header is in which
column. I want to store these in another file.
How do I do this?
Which one is better practice?
I tried the 2nd option, however I got the error "variable xxx is not
imported". Why? What does it mean? What's the usual cause?
Re: basic use of modules
The second. However, you may find it more awkward if you really want a
big list of variables to import. A better option would be to put these
constants into a single hash, instead, and then import that; a third
would be to use the 'constant' module to define proper named constants.
You need to read perldoc perlmod, and then probably perldoc Exporter.
Post again if you don't understand those two documents.
- » FAQ 4.32 How do I strip blank space from the beginning/end of a string?
- — Previous thread in » PERL Discussions