PERL Problem

From: Jean Schuller <schuller_at_crnal4.in2p3.fr>
Date: Tue, 18 Mar 1997 16:05:07 +0100 (MET)

I know, I'm not on the right place but I hope to find a PERL guru
who can give me a little help :

When I execute my script :
#!/usr/local/bin/perl
print "Start of splitting main file\n";
system("split -100 FINAL.LISTE_SORTED SORTIX.");
print "Main file splitted\n";
_at_list = `ls SORTIX* `;
print "SORTIX List created\n";
$rank=0;
foreach $li (_at_list)
{
  print "I read ",$li," I write ",$outfile,"\n";
  $rank++;
  $outfile="SORTIX".$rank;
  system("mv $li $outfile");
}
.
.
.
I have each time an error message :
Start of splitting main file
Main file splitted
List with SORTIXn created
I read SORTIX.aa
 I write SORTIX1
usage: mv [-i | f] [--] src target
   or: mv [-i | f] [--] src1 ... srcN directory
   or: mv [-i | f] [--] directory1 ... destination_directory
sh: SORTIX1: not found
I read SORTIX.ab
 I write SORTIX2
usage: mv [-i | f] [--] src target
   or: mv [-i | f] [--] src1 ... srcN directory
   or: mv [-i | f] [--] directory1 ... destination_directory



Do I miss something ??

TIA

JEAN


-----------------------------------------------------------------------------
Jean Schuller _/ _/_/_/ _/_/_/ _/_/_/_/
schuller_at_crnal4.in2p3.fr _/ _/ -/ _/ _/ _/
                               _/ _/_/_/-/ _/_/_/ _/_/_/_/
                              _/ _/ -/ _/ _/
                             _/ _/ _/ _/_/_/ _/_/_/_/
local call: 0388106630 Institut de Recherches Subatomiques
foreign call: (33)388106630 Boîte Postale 28
local fax : 0388106234 23, Rue du Loess
foreign fax : (33)388106234 F-67037 STRASBOURG CEDEX - France
-----------------------------------------------------------------------------
Received on Tue Mar 18 1997 - 16:50:52 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT