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?
__
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
> >
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
>...
>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
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