News for hackers. Stuff that matters.
Re:Useful Perl one-liners (2013) by JadeNB on Tuesday November 29, 2016 @01:19PM (#13064956)
> What is the advantage of this over sed?

The same as for anything that could be done in the shell, but is done with a full-fledged programming language: when you discover you need to tweak it to accommodate an additional requirement, it's easy in Perl but hard in sed.

Re:Useful Perl one-liners (2013) by nilved on Tuesday November 29, 2016 @01:21PM (#13064970)
If that was the case you think you'd reach for literally any other language than Perl.
Re:Useful Perl one-liners (2013) by aduitsis on Tuesday November 29, 2016 @01:34PM (#13065111)
If you feel unproductive or uncomfortable with Perl, you should avoid it and use whatever language strikes your fancy.

Many people however are extremely comfortable and productive with Perl, for a wide variety of reasons. It's really an awesome language that has proven its vast usefulness a long time ago.

Re:Useful Perl one-liners (2013) by untoreh on Tuesday November 29, 2016 @01:23PM (#13064979)
perl has the best regex, or one of the best, also it is the only other language other than python which is installed by default in common distros afaik
Re:Useful Perl one-liners (2013) by collyw on Tuesday November 29, 2016 @02:27PM (#13065547)
Perl is usually my goto language for that sort of task. It has loads of built in features for interacting with the system.