Not Perl-related answer, but shouldn't your task be to calculate tax? I mean if you have initial value x and you know what tax t is, you should print x * t on the output. For this you need to know that
takes list of arguments and print all of these, so you can use something like this: