"be consistent" | |
PerlMonks |
Re^3: parse /etc/passwd and output it as csv in hundred serversby hippo (Bishop) |
on Apr 13, 2018 at 17:22 UTC ( [id://1212822]=note: print w/replies, xml ) | Need Help?? |
Those are substitutions with regular expressions. The first one removes everything from the first colon to the newline character while the second turns the newlines into commas. See Pattern Matching, Regular Expressions, and Parsing in our tutorials section, perlretut and perlre in perldoc for some references.
In Section
Seekers of Perl Wisdom
|
|