http://www.perlmonks.org?node_id=969591


in reply to Useless content call in void context

* I hope you have the lines "use warnings;" and "use strict;" in common.pl. If not, add them and investigate any errors or warnings

* You have a line in there: my $res2 = $ua->get("ftp://ftp.sec.gov/$file");. $file is never used before that. Also in the next line $res2 gets overwritten with another get() call, so this seems to be a line you simply forgot to remove