wait a second...
1/2 * 2 + 1
= 2/2 + 1
= 1 + 1
= 2
isn't that an
even number?
i think you meant:
perl -le 'print map {$_*2+1} 0..12/2
Update:
Nope, i was wrong. i started thinking about how to do this given a low and a high, so i got about this far:
int( $low/2 )..int( $high/2 ) when i realized, hey, the .. operator probably takes the int of the values already. so i tried it, and after running the code provided, i found out the .. operator already does take the int of the values, so your answer works. sorry.