in reply to Concatenating numeric variables...

You want something like this:

open FILE, '>', 'some_file' or die "Cannot open 'some_file' $!"; for my $line_counter ( 1 .. $in{ records } ) { print FILE $in{ "REPORTID_$line_counter" }, $in{ "COST_$line_count +er" } * 100; } close FILE;

Replies are listed 'Best First'.
Re^2: Concatenating numeric variables...
by babuyagu (Initiate) on Apr 30, 2009 at 07:19 UTC
    That's absolutely brilliant thanks - all I needed was to changes the single quotes to doubles and it worked perfectly. A little knowledge... Thanks again and all the best, Paul