Try moving the "open HTML" line out above the loops...
# You don't want to do this for each line! open HTML ">C:/Users/jk/Desktop/fun/perl/$site.html"; foreach(<@node>) { $death=$_; print HTML "$death\n"; }
In reply to Re: Perl prints only last line of array
by RMGir
in thread Perl not printing any special characters in array
by myfrndjk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |