in reply to Re^2: Rename All Files In a Directory
in thread Rename All Files In a Directory

$dir="/home/yehuda/img/jpg/"; chop $dir;
Here you hardcode a string and immedeatly chop off the last char. I cannot make any sense of that.
It does have some minimal amount of sense, if seen in the awkward context of all the rest of the code. Probably the trailing / conveys him the psychological feeling of having to do with a directory, but then later he does $dir/$somethingelse. Not to justify him - just trying to understand...

Incidetally, why did you post your reply to the OP as a reply to my own reply?!?

Replies are listed 'Best First'.
Re^4: Rename All Files In a Directory
by holli (Abbot) on Jul 01, 2005 at 10:01 UTC
    Because in your OP, before you updated it, there was something along the lines of "your code does not look so bad".


    holli, /regexed monk/