Can somebody explain, why this code is working:
ls -o --full-time|perl -pe "s/\s{2,}/ /g; for (my $i = 1; $i <= 9; $i++) {s/\s/;/;}"
and this code is not working:
ls -o --full-time|perl -pe "s/\s{2,}/ /g; for (1..9) {s/\s/;/;}"
what it does: replace first 9 spaces with ";"
spec: perl, v5.8.8, OS WinXP SP2
execute in cmd prompt.