All of your points are quite valid, and had I taken the time to find Base::Filename (I am still merely an egg), I would have used it. This was a specific little hack for a specific little instance, where this will always be on a windows system, and the project managers would be expecting it to pick up their config file from the directory they're running the script in. (most of them can only run the script from looking at their notes which include everything down to directory navigation) It was also going to be replaced soon with a web interface for performing this task.
I was basically trying to play around and make the default config file in this specific instance variable to the name of the script being run. Yet mostly it was an exercise in building 10 commands into 1 line and enjoying myself =) In retrospect, I should learn from this to:
- account for as many variables as possible with my code
- check for a module which performs my tasks cleanly on CPAN
- post absurd code snippets like that under Obfuscation
I also need to look through the FAQ's here and learn how to easily include all the proper links in my posts. I feel like such a slacker =)
I still have not nearly the programming experience I would like,
and a childs eyes when I play with Perl.
-=rev=-
When you hear sweet syncopation
And the music softly moans
T'ain't no sin to take off your skin
And dance around in your bones
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.