As one who sometimes posts crazy questions that don't make sense...sometimes we are looking for best practices or the theory behind the question, but we don't *know* it.
If you are not used to event based programming, formulating a question can be confusing.
If you are a windows programmer, fork and pipe are confusing. Sometimes we want the background details: Lookup the fork() function. It will make 2 copies of your script that share all variables/handles then each half does its work...fork is not supported on all platforms, it is in alpha on Win32, and even then, isn't fully compatible
If you are a windows person, understaning how to interact with the shell can be very complex. Not to mention that most Perl stuff is Unix/Linux oriented...so it is nice to have the "watch fors"
It might be nice to have an "experience level" combo box next to the question...that gives the awesome Monks some idea of how to formulate a response, which we are VERY grateful ! (also a platform combo would be cool)
Here is a good example of something I recently struggled with, that isn't Perl, but I want to do it with Perl ;-)
I want to execute a command-line send mail program from my program. Now I am on Win32 but want Linux compatability.
Even with the W32 qualification, most people assume I know mail or mailx. I am concerned about how long the message body can be? Is that an issue on Unix? Would be on Win32...What about a pipe? Why not use Net::SMTP? Well if you have a Tk app, it will block...is that an issue? Call fork() Ok for UNIX? Probably too much overhead for Win32... I think that many of us feel that these issues have been dealt with so many times, there are good rules of thumb to follow...maybe we are wrong ;-)
While it looks like I am asking how to call an external program, I might not be able to express my concerns as I don't know the tradeoffs...
I don't know how to make it easier, but many of us are learning what you might consider the basics along with our new found interest in Perl !!!
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.