in reply to Re^3: Running JavaScript from within Perl
in thread Running JavaScript from within Perl

You have not chomped $row (as can be seen from the printed output when run). If I do that it works fine.

$ diff 11106348_orig.pl 11106348.pl 12a13 > chomp $row;

I presume when you used just one URL in the data file you did not even add the EOL character so it worked as a fluke.