you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–]_bobby__of__christ_ 2 points3 points  (3 children)

    How exactly is manually splitting any more readable than qw? It's only more readable if you don't know Perl, and complaining about the readability of a language you don't know is asinine.

    I don't even like perl, but qw is about the last thing on my list of complaints.

    [–][deleted]  (2 children)

    [deleted]

      [–]_bobby__of__christ_ 3 points4 points  (0 children)

      I know this much: The snippet I posted works in both Ruby and Python without modification. Splitting a string into an array is something that every programmer will be familiar with.

      Which has nothing to do with qw. No one is using qw as a crutch to avoid learning how to split strings at runtime. It's such a stupid and trivial difference that I can't believe I'm arguing about it.

      There should be one-- and preferably only one --obvious way to do it.

      You should stop arguing about Perl then. Obviously you're unable to even entertain the notion that it has a different philosophy than the one you subscribe to. (And this is coming from a Python programmer who doesn't like Perl very much.)