> There are some commands to open a file .. and read the stuff into an array
> and manipulate the contents .. sentence by sentence or word by word ..
> 
> < pseudocode >
> open (FILE,"< test.txt",r)
> loop here
> @myarray=read(FILE)
> loop end till eof ..
> </pseudocode>
> Regards
> Sandesh
> Check out perldoc command ..
> perldoc -f read
> perldoc -f == > for function based help ..


The perl syntax for opening a file and reading it is::

open(HANDLE, "filename");
@lines=<HANDLE>;
close(HANDLE);
foreach $line (@lines) {
        # do something other than just displaying
}

HTH.

Philip


To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to