Jamie Cameron wrote:
> On Mon, 2004-09-13 at 11:11, David Filion wrote:
>
>>I'm reading in a file using:
>>
>>my $file = read_file_lines($config {"sc_serv_conf"});
>>
>>$config {"sc_serv_conf"} points to a text file. $file reports 323
>>lines. So far so good. Line 142 in the file I've read in is:
>>
>>; AdminPassword=adminpass
>>
>>However when I print line 142 of $file using:
>>
>>print $file->[142]; print "<br>\n";
>>
>>All I get is:
>>
>>142 ;AdminPassword=
>>
>>The text after the '=' is truncated (or so it appears). Anyone have any
>>suggestions as to what happened to the remainder of the line?
>
>
> Make sure you haven't set the Perl line separator $/ to something
> anywhere in your code. If it is set to anything other than the default
> "\n" , many Webmin functions will be confused by changes the Perl
> functions that read a line from a file.
>
> - Jamie
>
>
I haven't touched it. I'm goign to pring each element of the array and
see if any other lines are truncated.
Thanks,
David
|