Re: calling system

2006-10-21 Thread Andrew tanenbaum
On Sat, 21 Oct 2006 04:15:23 -0400 (EDT) , Jeff Pang <[EMAIL PROTECTED]> wrote: > >>... >>cont = 0; $cont = 0; >>while () { >>cont++ $cont++ ; >>$file_out = $_; >>$file_in = $cont; >>system "mv $file_in $file_out";} >>... > Isn't the right way? __

Re: calling system

2006-10-21 Thread xavier mas
A Dissabte 21 Octubre 2006 11:18, Xavier Noria va escriure: > On Oct 21, 2006, at 9:52 AM, xavier mas wrote: > > Dear all, > > Hi Xavier! > > > I'm trying to rename a bunch of files to the estination names > > included in a > > prepared files calling the system function "mv" inside a while loop > >

Re: calling system

2006-10-21 Thread Xavier Noria
On Oct 21, 2006, at 9:52 AM, xavier mas wrote: Dear all, Hi Xavier! I'm trying to rename a bunch of files to the estination names included in a prepared files calling the system function "mv" inside a while loop (that reads the destination files one by one). But when doing this, I get a

Re: calling system

2006-10-21 Thread Jeff Pang
>... >cont = 0; >while () { >cont++ >$file_out = $_; >$file_in = $cont; >system "mv $file_in $file_out";} >... Hello, I think it's better to use perl's "rename" instead of system call "mv". See 'perldoc -f rename'. -- Books below translated by me to Chinese. Practical mod_perl: http://home.ear

calling system

2006-10-21 Thread xavier mas
Dear all, I'm trying to rename a bunch of files to the estination names included in a prepared files calling the system function "mv" inside a while loop (that reads the destination files one by one). But when doing this, I get an error saying a destiantion operand is missing in line calling t