I cannot be more surprise than anything else than your comment, as regard my initial OP. After I came to this thread.
Indeed had posted a solution, which stated as this
Use this: next unless ($file =~ m/.+?\.jpg$/);
then added this:
Please, always check the return of your open function like so: open ... or die "can't open file: $!"; or use autodie
Only for me to go back into the "thread" to see that runrig had posted this:...Also, unless you're using autodie, you should check the status of open and opendir.
On my honor, I didn't update my regex used in my initial OP, neither did I updated my post after seeing runrig post.
Probably, the only mistake I made was not to have put a word out that I wasn't updating my post after seeing that of runrig.
Infact, to prove that, why was opendir not included in my "update"? If I had seen that of runrig before writing mine.
Please, if you may, check my other post before now. I had shown Update, when my initial post had been updated. Acknowledged, when the original thought was not mine, been grateful with an update of the monks name when I was corrected on some post.
I feel so hurt here, because I had been called a "thief" but in a polite way.
I believe your assessment of what went down here is WRONG, please.
Sorry, I didn't include this: Except for changing the usage of "Use this" to "try this:" I didn't update anything else.
And I did that because I felt that using "Use this", was not polite enough.
And if I had wanted to lie about this, I would not be including this.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||