4 ms·
How would this influence popular types of one-liners? As an example, if I run: perl -pi.bak -e "s/;/,/g" mycsv.csv Would there be any difference?
by mikorym 8y ago
How would this influence popular types of one-liners?
As an example, if I run:
perl -pi.bak -e "s/;/,/g" mycsv.csv
Would there be any difference?
- cygx 8y agoI'm not sure -i has been implemented, and the regex syntax has gone through a major overhaul. In your particular example, the global flag is now an adverb you put in front, and characters like ; now have to be backslash-escaped or quoted, ie s:g/\;/,/ Sadly, the Perl6 regex/grammar engine is rather slow, taking away from its potential as a 'killer feature'...