use strict;
[COLOR=grey]# These are the configurations that you requested[/color]
my %config = (
alpha => [[COLOR=green]'MMC','RS-MMC','miniSD','microSD'[/color]], [COLOR=grey]# Your 4 alpha values[/color]
field1 => [COLOR=green]262020410000001[/color], [COLOR=grey]# The value that field 1 should start at[/color]
field4 => [COLOR=green]01620450752[/color], [COLOR=grey]# The value that field 4 should start at[/color]
iterations => [COLOR=green]1000000[/color], [COLOR=grey]# The number of iterations[/color]
filename => [COLOR=green]'generatedData.dat'[/color] [COLOR=grey]# The path to the data file you are creating[/color]
);
open (DATAFILE, ">$config{filename}") || die ("Cannot create file");
for (1..$config{iterations}) {
[COLOR=grey]# Choose a random entry from the alpha array[/color]
my $alpha = $config{alpha}->[int rand @{$config{alpha}}];
[COLOR=grey]# Print the standard data with the changing configurations[/color]
print DATAFILE "$config{field1};$alpha;5;$config{field4};CDDDDDDAAPOLCU;CDDDDDAAPOLLO;" .
"CDDDDDAAWKACU;CDDDDDDAAWKAUS;CDDDDDDACYBIMM;Mannesmann Mobilfunk GmbH;" .
"200016666666;Vodafone;N;N;N;N;;;UCCCCCCCC;Y;ROAMTIOT;;;;;C\n";
[COLOR=grey]# Increment the changing fields[/color]
$config{field1}++;
$config{field4}++;
}
close (DATAFILE);