open(FILE, $filename);
@array = <FILE> ;
close(FILE);


-----Original Message-----
From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 11:54 AM
To: Perl Beginners
Subject: Putting file content into an array


Hi,
 
I need to read a specific file and put the each line of that file into
an array.
 
I mean first line will go to the first position of the array , second
line shud go to the second position of the array and so on.
 
How do i do that ?
 
Please let me know.
 
Regards
Irfan.
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to