I understand the concept of TIMTOWTDI and think it is a very intense, intriguing, thought-provoking, and accurate principle. So here is the situation. I am trying to write a program (AND yes I still consider myself $newbie) that will open a .txt file that will be formatted like so
'him@here.com','C:\\test1.txt','C:\\test2.txt','C:\\test3.txt'
'her@there.com','C:\\test3.txt'
'it@where.com','C:\\test2.txt','C:\\test1.txt'
and take the email address (which I planned for to always be placed first) and send the following files.
My question is, "what would be the most efficient?" I have looked at the perldsc pages and attempted a hash of hashes, but like I said earlier, I still consider myself a $newbie since I was having a tough time grasping the concepts fully. Things like how I should format the .txt file or should I use hashes or arrays were concerns. I realize that everyone may have a different idea and way. And though each way may be just as efficient in time and resource usage, there will be certain ways that are more efficient for the perlmonk and the monk's way of thinking. That is why I am asking in this manner. To find the most efficient path for my way of thinking.
Thanks.
Blacksmith.
Update:I need to send a seperate mail to ALL of the address when the
program runs.
Added update 2001-12-07 by dvergin per user request
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.