Dharmender Rai <[EMAIL PROTECTED]> writes: > you are not reading the files properly. > use 2 "while loops". the outer for traversing the > command line args while the inner for reading and > checking the file contents. use "break" in the inner > "while loop" when you get a blank line to go to the > outer "while loop".
Ahh thanks, <sort command line input args that aren't files here> shift; <now the rest are files> while(<@ARGV>){ $file = $_; open(FILE,"<$file"); while(<FILE>){ do what ever last if(/^$/); } close(FILE); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]