in reply to trying to format list
in thread trying to format a list

It does make sense, and I'm usually in the same boat as other Monks... we prefer people do actual research and testing. The only reason I went all out is because I now code in Python, so the rare chance while at the office I get to visit PerlMonks I take the opportunity to do a bit of work with Perl :)

I'll leave it up to you how to sort and format (Google and perldoc are your friends). The numbers, if you checked my output, already does what you need. Again, your input was lacking, so depending on other situations, you'll have to edit the code to fit.

Cheers,

-stevieb

  • Comment on Re^3: total noob trying to format a phone list

Replies are listed 'Best First'.
Re^4: total noob trying to format a phone list
by Laurent_R (Canon) on Apr 24, 2015 at 18:51 UTC
    I now code in Python
    I really feel sorry for you. ;-)

    Je suis Charlie.

      Programming never was in my job description until this new job, but about half of the work I did was coding (Perl) for the better part of 12 years. I absolutely love Perl.

      That said, I am really liking Python as well. Only been using it for about three months, but it was exceptionally easy to grasp, and I'm already doing most of the advanced things I've done in Perl with the new language.

      I find the 'everything is an object' to be very intuitive and handy. Perl6 has this model as well, but I don't think it's too far into the wild as of yet. I also like the fact how spacing is what separates blocks, and that very few line terminators and sigils are necessary (code looks cleaner and more streamlined).

      All in all, Perl is still and will always be my favourite, but I am finding that people who bash Python probably haven't given it a fair chance ;)

      -stevieb

      And I feel even more sorry for you for posting that. It shows just how insecure you really are.
        Hmm, I usually simply don't even answer to people who hide behind "anonymous monk" for this type of comment (I think I have posted as anonymous monk only once, the very first time I posted on Perl Monks, because I wasn't yet aware of the color codes on PM and I did not realize I was not logged in).

        My post above was just a joke (with a smiley, just in case it wasn't obvious). You're a poor fellow if you don't understand that, I really feel sorry for you. And, to tell the truth, I have used Python for a few years before I moved to Perl, so that I do know quite a bit what I am talking about and I am fairly secure about what I am saying.

        Je suis Charlie.
        um, dude, chilax