in reply to Re^4: printing every 2nd entry in a list backwards
in thread printing every 2nd entry in a list backwards
From this node:
by creating a file with 1_000_000 entries, each line having 10 numbers and then running the script against it
I still can't reproduce your evidence.
$ perl -wMstrict -le 'print join(" ",map {int(rand(100))-50} 1..10) fo +r 1..1000000' >in.txt $ time python list.py in.txt >pyout.txt real 0m1.964s user 0m1.934s sys 0m0.028s $ time perl 1190602.pl in.txt >out2.txt real 0m1.953s user 0m1.921s sys 0m0.028s
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: printing every 2nd entry in a list backwards
by vrk (Chaplain) on May 19, 2017 at 14:04 UTC | |
by haukex (Archbishop) on May 19, 2017 at 14:13 UTC |