Suggestion given by "[EMAIL PROTECTED]",
++++++++++++++++++++++++++++++++++++++++++++++++++++
Sayed, Irfan; your questions are *too basic*. Any Perl programmer who has read the first seven documents referred by "perldoc perl" will know the questions you're asking.

Please read these:
perldoc perlintro
perldoc perltoc
perldoc perlreftut
perldoc perldsc
perldoc perllol
perldoc perlrequick
perldoc perlretut

Read them and do all of the examples in them. Whatever program you're writing, stop writing it and take a couple of days to learn Perl. Then return to your program with newly opened eyes.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Krishnakumar K P wrote:

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