$ perl -MO=Deparse -l40eprint,for'002'..'020' BEGIN { $/ = "\n"; $\ = " "; } print($_), 'for002' .. 16; -e syntax OK