Typically ./ is excluded from the path for security reasons. Probably not a big deal in this case (there are more single user, a.k.a. desktop, machines running linux these days than multi-user servers per se). But say on a multi-user machine, some mischevious user creates a bash script called "ls" and puts it in some group writable directory that you do much work in. According to your PATH that ls would be called before the real ls and it would do whatever that mischevious person created it to do. For example, mail your ssl private key to themselves, or /etc/shadow if you foolishly have ./ in your path as root. Of course, their script would then call the real ls then delete itself and you would be none the wiser.
Anyway, I'm not picking on your advice, I would just like people to be aware that ./ is excluded from the path for a very good reason. If you just get used to typing ./program.pl now, you might save yourself problems in the future.
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.