$index = `cat /tmp/myfile.index`; $index = $index + 1; system "echo $index > /tmp/myfile.index"; exit 0;