in reply to Perl not printing any special characters in array
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"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl prints only last line of array
by myfrndjk (Sexton) on Jun 22, 2014 at 10:51 UTC |