On Tue, Jan 08, 2002 at 10:50:51AM -0500, Yacketta, Ronald wrote: : :Folks, : :need some minor help here.. been looking in the Cookbook for an example :to pull the first line from a file..
open FILE, "filename" or die $!; my $line = <FILE>; close FILE; Remember, <FILEHANDLE> is something you can iterate over. In scalar context it returns just one line (for all intents and purposes) at a time. Casey West -- Usenet is like Tetris for people who still remember how to read. -- Button from the Computer Museum, Boston, MA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]