Tag Archives: Perl

  • Quick Perl Regexp in VIM to format e-mails list

    I have a list of e-mails that I extracted from MySQL as something like this: name@example.com firstname lastname name2@example.com firstname2 lastname2 name3@example.com firstname3 lastname3 and I want them to be in this format: firstname lastname firsntame2 lastname2 firstname3 lastname3 Using VIM, I can do: :% s/^/ / :% s/()s(w*)s(.*$)/2 3 1/ The last one is […]

  • Quick Perl Regexp in VIM to format e-mails list

    I have a list of e-mails that I extracted from MySQL as something like this: name@example.com firstname lastname name2@example.com firstname2 lastname2 name3@example.com firstname3 lastname3 and I want them to be in this format: firstname lastname <name@example.com> firsntame2 lastname2 <name2@example.com> firstname3 lastname3 <name3@example.com> Using VIM, I can do: :% s/^/</ :% s/s/> / :% s/(<.*>)s(w*)s(.*$)/2 3 […]

  • PostgreSQL Autodoc

    This article was first written in June 2004 for the BeezNest technical website (http://glasnost.beeznest.org/articles/134). PostgreSQL Autodoc is a powerful and useful tool to document a PostgreSQL database. It is written in Perl and generates several outputs. Using it is as simple as launching it with the name of the DB, and user and password to […]