in reply to Re^4: -bash: usein thread -bash: use
A module is not intended to be run directly.
Write your code as a Perl script, save it as myscript.pl and run it as:
perl myscript.pl [download]