I have this code that is acting strange... does anyone know why. open( CONFIG, "+<config.file" ) or die "Cannot open config: $!";
while( <CONFIG> ) { print; print CONFIG; } close( CONFIG ); The first time I run the script, it reads the file, which is one line, and duplicates that line. Now, correct me if I'm wrong, but I would think that each time this is run, it would double the size of the file. But it doesn't, it just reads the first line, prints it to STDOUT, but not the file again, and exits. I have the sticky bit set on the script, and I don't know if that is what is causing it. Any Ideas? Joshua Colson Systems Administrator Giant Industries, Inc. (480) 585-8714 [EMAIL PROTECTED]