in reply to Re^2: How to use file copy with wild card characters
in thread How to use file copy with wild card characters

Danger, Will Robinson! map in void context! I would write that like this instead:

copy($_, "$_.new") for glob "*.ext";

I think it's much easier to look at.

Replies are listed 'Best First'.
Re^4: How to use file copy with wild card characters
by holli (Abbot) on Jan 01, 2005 at 11:06 UTC
    what´s wrong with map in void context?

      what´s wrong with map in void context?

      Nothing if you are using 5.8.1 or later. See perl581delta.