in reply to Globbing and Moving Together

If you read File::Copy's docs carefully you'll note that move will move the file to a directory if that's what the last argument is (hence an advantage over rename.) So, you can use something like:

move $_, $out for glob("$in/*.pl");

Replies are listed 'Best First'.
Re: Re: Globbing and Moving Together
by Kevman (Pilgrim) on Jun 29, 2001 at 19:57 UTC
    Now that really is the "Bees Knees"!!!!
    I had tried using File::Glob as it suggests in "programming perl",
    but gave up on that for the straight "glob" approach.

    Many Thanks

    Kevman
Re: Re: Globbing and Moving Together
by larryk (Friar) on Jun 29, 2001 at 19:49 UTC
    aaah. sorry... give me a sec... *switch* ...right, that's my brain on now. ++2u

    "Argument is futile - you will be ignorralated!"