open (INF, "functions.txt");
(@getfunctions = <INF>);
close(INF);
foreach $getfunctions(@getfunctions) {
@function=split(/,/, $getfunctions);


if your cool and use strict, then you nned to declaire some of those
variables
end of line is used as a delimeter for each cell in the array

Dean

George Vieira wrote:
> 
> hey all,
> 
> How do you read lines from a file into an array using Perl ( I still have
> this Perl problem)
> in Basic it would be:
> 
> open "file.txt" for input as #1
> while (eof(1))
>  count=count+1
>  input #1, line$(count)
> loop
> close #1
> 
> what's the Perl version of this? I can't seem to get it to read one line
> each into an array.. it always grabs the whole file...
> 
> thanks,
> George Vieira
> Network Administrator
> Citadel Computer Systems P/L
> http://www.citadelcomputer.com.au
> 
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text

-- 
BONG: http://www.bong.com.au
EMAIL...
[EMAIL PROTECTED]     [EMAIL PROTECTED]
[EMAIL PROTECTED]      [EMAIL PROTECTED]
ICQ: 16867613
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to