in reply to Re: Re: How do I tighten this with map?
in thread How do I tighten this with map?

The reason I put the temporary @files array is because it might not be temporary. Also, it enhances readability. Just cause you can doesn't mean you should. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Re: Re: How do I tighten this with map?

Replies are listed 'Best First'.
Re: Re: Re: Re: How do I tighten this with map?
by IraTarball (Monk) on Oct 16, 2001 at 21:47 UTC
    Of course you are right. I thought this same thing, and tried to allude to these problems in my post. But I am young and brash and still try to reduce, perhaps too far.

    Mostly because it's fun.

    On an aside, if the @files array is not needed then japhy's solution which removes one whole regex evaluation must be considered better by some definition of efficiency. Those things are expensive.

    Ira,

    "My thoughts are my own, I think."
    ~Me, I think