On Tue, 8 Jan 2002, Yacketta, Ronald wrote: > need some minor help here.. been looking in the Cookbook for an example > to pull the first line from a file..
First line? Just read from the file once and then close: open FILE, "$filename" or die "Can't open $filename: $!\n"; my $line = <FILE>; close FILE; Of course, you should make sure $line actually has something in it before trying to use it (testing for definedness). -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Waste not, get your budget cut next year. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]