- or download this
my @array = join(' ' , keys %num) . "\n";
- or download this
my @array = keys %num;
- or download this
my @num = ();
- or download this
while(scalar @num < 5){
push @num, int(rand(50) + 1);
}
- or download this
push(@num, int(rand(50) + 1)) for(1..5);
- or download this
print join(' ' , @num), "\n";
- or download this
my $sum = 0;
...
}
print "The sum is: $sum\n";
- or download this
my @num = ();
...
print join(' ' , @num), "\n";
print "The sum is: $sum\n";
- or download this
my @num = ();
my $sum = 0;
...
}
print join(' ' , @num), "\nThe sum is: $sum\n";