note
marto
<p>Hardly surprising. You have:</p>
<c>
no warnings "all";
</c>
<p>See [perldoc://warnings]. You don't check that you're opening files successfully , see [perldoc://open], check <c>$!</c>. To write to your file use:</p>
<c>
print OFILE "$name\n";
</c>
<p>Try adding:</p>
<c>
use strict;
use warnings;
</c>
<p>Declare your variables, change how you're using [perldoc://open] as per the documentation. It looks like you could benifit from learning the basics:</p>
<ul>
<li>[doc://perlintro]</li>
<li>[http://learn.perl.org|http://learn.perl.org]</li>
<li>[http://perldoc.perl.org|http://perldoc.perl.org]</li>
<li>The [tutorials] section of this site, including [id://213052]</li>
</ul>
1041200
1041200