To read-in the whole file content the data type needs to be an array.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
# Read pregenerated profile data
open(FILE, "/var/ipfire/fireinfo/profile");
-my $profile = <FILE>;
+my @profile = <FILE>;
close(FILE);
-chomp($profile);
print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n";
</tr>
<tr>
<td colspan='2'>
- <textarea rows="25" cols="75" readonly="readonly">$profile</textarea>
+ <textarea rows="25" cols="75" readonly="readonly">@profile</textarea>
</td>
</tr>
</table>