Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: Regular expression to list all files of type in folder

by 2teez (Priest)
on Dec 06, 2012 at 01:57 UTC ( #1007445=note: print w/replies, xml ) Need Help??

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

Hi ww,
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
  • Comment on Re^3: Regular expression to list all files of type in folder

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007445]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-03-28 14:36 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (333 votes). Check out past polls.