If you are talking about the 'my' before the $final_href on line 7, it was by mistake, but it is NOT the issue I was facing. Even if I'll remove 'my' (and that is true that I have to do it), it WON'T fix the problem because that problem is in the "%{$files_href->{data}". I do understand the problem, I know why it occurs and where I just don't understand how to solve it. Actually, I do know how to solve it but it does not feels right (I can use some empty hash and insert it into the 'data' and 'total' before the loop). The problem is that at the first iteration "$files_href->{data}" is not defined and my code tries to do "%" on a non-defined 'value'.
Anyway, I feel like you and especially LanX, are not so nice. Maybe to you, the problem is so easy that its funny, but for me, it does not. I'm sorry for wasting your time.
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.