News for hackers. Stuff that matters.
Re:Perl One-Liners by myrandomcomment on Wednesday December 04, 2013 @08:49PM (#6852114)
"Part of the fun of programming in Perl lies in tackling tedious tasks with short, efficient, and reusable code."

Reusable - I have always felt that Perl is a write-only language. :)

Re:Perl One-Liners by mst on Wednesday December 04, 2013 @10:08PM (#6852443)
Bad perl is write only.

Good perl is a different matter.

With great expressiveness comes great ability to express how bad you are at writing maintainable code.

Re:Perl One-Liners by pkrumins on Wednesday December 04, 2013 @08:54PM (#6852131)
Unless you make it many small shell aliases, such as these:

    urlescape () { perl -MURI::Escape -lne 'print uri_escape($_)' <<< "$1"; }
    urlunescape () { perl -MURI::Escape -lne 'print uri_unescape($_)' <<< "$1"; }
Then you can reuse them often. :)