.--[ [EMAIL PROTECTED] wrote (2002/11/20 at 11:35:11) ]--
|
| I know there must be an easy way to do this...
| help greatly appreciated, Thanks
|
`-
open(IN, "myfile.txt") or die "Cannot open file: $!\n";
my $first_line =
First open the file using open:
perldoc -f open
Then use the filehandle (FILE for instance) to put the first line in $str:
$str = ;
Then if you don't want to do anything else with the file, close it:
perldoc -f close
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
S