What does the file look like with the numbers? Is it in a list type format? If so you could load the file into an array and assign the array elements to a variable.
Lets say your number file looks like this
123
12
52
15
27
336
Load the file into an array like so
open FILE, "<", "file.txt";
chomp(@array=<FILE>);
close FILE;
This will give you an array which would have the all the values loaded from the file. If you wanted to multiply them by a constant I would loop through the array and do a conditional check on each element. Here is an example script which will write out to a new file
#!/usr/bin/perl
my $input = 'input.txt';
my $output = 'output.txt';
my $constant = 15; #number you are multiplying by
open FILE, "<", $input;
chomp(my @array=<FILE>);
close FILE;
for(@array) {
if ($_ > 20) {
open OUTPUT, ">>", $output;
print OUTPUT ($_ * $constant)."\n";
close OUTPUT;
}
}