SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jun 2008
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Warning messages

    Hi,


    Code:
    `mv file(name)_bak.txt file(name).txt`
    gives out the warning message. How to avoid these warning messages.
    These errors are got because of braces in the filenames

  2. #2
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sandy1028 View Post
    Hi,


    Code:
    `mv file(name)_bak.txt file(name).txt`
    gives out the warning message. How to avoid these warning messages.
    These errors are got because of braces in the filenames
    It's hard to tell the reason without seeing actual warning messages.

    On side note, I'd recommend use Perl rename() function instead if you need just rename or actual move from File::Copy package...

    Code Perl:
    use File::Copy;
    $oldlocation = "myhtml.html";
    $newlocation = "html/myhtml.html";
    move($oldlocation, $newlocation);


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •