Basil Daoust wrote: > 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.
What were you expecting it to do? The rename command doesn't return any output when it is successful, so $x would be expected to remain empty. -- Bowie _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
