in reply to renaming files...

wrong advice, don't listen to me. nothing to see here, move along folks.

You need to escape the '-' character, because it's interpreted as a range.

update: that was a little short, try this: $TEMP1 =~ /^(A\-[0-9]+\-[0-9]+)\-AM/ notice the '\' characters. And the '^' so it'll only match files beginning with "A-123-123-AM"

update numero deux: woops, guess i was wrong. need to get handle on rexeps, sorry. (and actually read posts)

-- ar0n | Just Another Perl Joe

Replies are listed 'Best First'.
RE: Re: renaming files...
by tye (Sage) on Aug 08, 2000 at 22:10 UTC

    Actually, you don't need to quote the '-'s, they aren't making a range. See other follow-ups for why the code isn't working.

            - tye (but my friends call me "Tye")