DOS doesn't recognize FORWARDslash as a dir separator.  When you use
`backticks` it just sends the command to DOS.  Therefore you have to use
BACKslashes inside backticks.
 - - Martin
P.S. Please send ONLY PLAIN TEXT email to mailing lists.


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Basil
Daoust
        Sent: Tuesday, March 21, 2006 15:09
        To: [email protected]
        Subject: Re: renaming files in XP
        
        

        Same kind of question: 
        if this works from a DOS command prompt in Windows XP: 
        C:\>rename \test2\filea fileb 
        C:\>ls \test2 
        fileb 
        
        why doesn't $x=`rename /test2/fileb filec`; 
        the $x = null or empty. 
        
        the rename(old,new) did work.  It even MOVED the file. 
        
        Basil


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to