in reply to Re^2: Regular expression to list all files of type in folder
in thread Regular expression to list all files of type in folder
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