in reply to trying to rename files

Maybe I'm missing something, but I can't see where $_ gets set to anything useful (which is probably a good thing overall). Where you have $_ I think you need to have $file instead, since you have named it in the for declaration. Then also change the s/// to operate on $file:
$file =~ s/^append/aPPend/;
If you omit the left hand side, the s/// will apply to $_, but as I mentioned, I don't think that's being set.

Phil

Replies are listed 'Best First'.
Re^2: trying to rename files
by Anonymous Monk on Jun 09, 2006 at 21:15 UTC
    Thanks everyone it works perfectly...... Great to have such good resources like u guys on here... Great site...