$|=1; # So it works in the Open Perl IDE

@nums = (1..5,11..15); # use 2 range operators

foreach $e (@nums){
  $e = $e * 2;         # multiply each element
}
print "@nums";         # done!

