in reply to Rename problem

Instead of using a temporary variable, why not just fold the two steps into one?
rename("archive.txt", "$old_title.shtml") || die "Could not rename for some reason ($!)\n";

Replies are listed 'Best First'.
Re: Re: Rename problem
by Anonymous Monk on Nov 22, 2002 at 17:26 UTC
    Thats fine but probably in a fit of frustration I created the variable in question. As stupid as that sounds.
      Does the function return an error? Does your rename name have any unusual characters in it? Are you changing directories, for example?
        Thanks
        Does the function return an error? no
        Does your rename name have any unusual characters in it? no
        Are you changing directories, for example? no