UPDATE!!!
I have posted it in my scratchpad if anybody wants to give me some hints and help. Haven't looked at your comments bv but will do and thanks for the input! Also... so everything is working the way I want it as far as output is concerned except for the .xspf that the program generates in the top directory is named "..xspf". If you want to look at my SP and help it will be under the sub Wanted. Thanks for the support monks!
Hello monks. This is my first time posting here... have used the site for knowledge extensively the last couple of days while attempting to write my first non-HelloWorld perl program; program that goes through my music directory and creates a XSPF playlist for every album and artist (I'm OCD when it comes to my music folder's organization).
I've got it 99.9% done and was curious if it would go against conduct if I posted my code (the final curly bracket sits exactly on line 150) and got feedback as to how to simplify things, as I know there are probably functions/shortcuts/special vars that could turn a couple of my blocks of code into a couple lines.
If this would be considered a sin I will not post it... however, if you guys wouldn't mind showing me some pointers I would love to put it up here and be told how to code correctly. It's commented on the non-self explanatory parts.
What do you think?
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.