"no such file" ?

Rostislav Matl xmatl na informatics.muni.cz
Pátek Říjen 2 18:26:31 MEST 1998


Mam adresat s takto pojmenovanymi soubory:
get?s=56602
get?s=56603
get?s=56604
get?s=56605
...

a rad bych s nimi neco udelal.
Snazim se je proto ve smycce podle zadanych argumentu projit,
dostvam vsak vytrvale zpravu:
"ERROR: No such file or directory: get?s=55602"

Co jsem prehledl ?

Kod meho skriptu:

#!/usr/bin/perl -w
$start = $ARGV[0];
$stop = $ARGV[1];

for ($i=$start; $i <= $stop; ++$i) #smycka pres soubory
{
 my $file_name = "get?s=$i";
 open(FILE,"$file_name") || die "ERROR: $!: $file_name\n";
 print "---------- $file_name ----------\n";
 close(FILE);
}  

+-----------------------------------------------------------------------------+
|  ROSTISLAV MATL, student of Masaryk University - Faculty of Informatics     |
|  e-mail: xmatl na fi.muni.cz      WWW: http://www.fi.muni.cz/~xmatl/index.html | 
|  ICQ#: 17058749                                                             |
+-----------------------------------------------------------------------------+


Další informace o konferenci Perl