> 
> Long ago in GW Basic there were sequential files and random 
> access files. Does perl have the latter? I only to get (and 
> then put) certain info in a certain place every time. If I 
> can avoid writing the whole file every time I bet my web site 
Every time what??


I'm not familiar with GQ Basic but there's lots of ways to modify files.

How big is your file?What format?

I'd use File::Slurp. Although you may still be writing the entire file 

If you just did 

use File::Slurp;

$contents = read_file("myfile.txt");
$contents .= "Here is a new line for my file!\n";
write_file("myfile.txt", $contents);

That script takes not quite one second for a 2.5 megabyte file for me.
If that puts your hosting provider in a pinch then I'd get another hosting provider!!!

DMuey

> hoster would appreciate it! Just point me in a direction... Thanks Lou
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to