3 ms·
If the script must iterate over the lines of its input, I've found perl -nlE to be a godsend. Basically it is equivalent to while(<>){ chomp; <in
by aduitsis 6y ago
If the script must iterate over the lines of its input, I've found perl -nlE to be a godsend. Basically it is equivalent to
while(<>){
chomp;
<insert your -E code here>
}