Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102202

Re: psss...I want to move from Perl to Python

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Nathan Hilterbrand <nhilterbrand@gmail.com>
Newsgroups comp.lang.python
Subject Re: psss...I want to move from Perl to Python
Date Thu, 28 Jan 2016 19:21:40 -0500
Lines 65
Message-ID <mailman.69.1454027286.2338.python-list@python.org> (permalink)
References <n8ea4q$muu$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de DuXL/+50RSNsI9ekStQzvwLmqm4cvrT+5Lu9yHsJCmOw==
Return-Path <nhilterbrand@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'subject:Python': 0.05; 'perl,': 0.07; 'problem?': 0.07; 'scripting': 0.09; 'separately': 0.09; 'though...': 0.09; 'python': 0.10; 'language,': 0.11; '2.7': 0.13; 'syntax': 0.13; 'suggest': 0.15; 'advice,': 0.16; 'messy': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'stupid,': 0.16; 'wrote:': 0.16; 'translation': 0.16; 'script.': 0.18; 'python?': 0.18; 'language': 0.19; 'do.': 0.22; 'so.': 0.22; '3.x': 0.22; 'arguments': 0.22; 'seems': 0.23; 'for?': 0.23; 'references': 0.23; 'tutorials': 0.23; 'header:In-Reply-To:1': 0.24; 'sort': 0.25; 'header:User-Agent:1': 0.26; 'separate': 0.27; 'module.': 0.27; 'revert': 0.27; 'start,': 0.27; 'idea': 0.28; 'looks': 0.29; 'perl': 0.29; 'wasting': 0.29; 'probably': 0.31; 'another': 0.32; 'language.': 0.32; 'older': 0.32; 'maybe': 0.33; 'programming,': 0.33; 'though.': 0.33; 'message-id:@gmail.com': 0.34; 'add': 0.34; 'received:google.com': 0.35; 'python.org': 0.35; 'text': 0.35; 'but': 0.36; 'too': 0.36; 'should': 0.36; 'needed': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'totally': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'two': 0.37; 'things': 0.38; 'version': 0.38; 'received:209': 0.38; 'anything': 0.38; 'several': 0.38; 'thank': 0.38; 'data': 0.39; 'does': 0.39; 'subject:from': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'your': 0.60; 'hope': 0.61; 'ago.': 0.61; 'back': 0.62; 'charset:windows-1252': 0.62; 'more': 0.63; 'different': 0.63; 'hear': 0.64; 'you.': 0.64; 'between': 0.65; 'offer': 0.66; 'feeling': 0.72; 'analysis': 0.72; 'received:10.10': 0.76; 'clothing': 0.84; 'nathan': 0.84; 'of?': 0.84; 'received:10.10.10': 0.84; 'suggestion,': 0.84; 'wheel': 0.84; 'difficult,': 0.91; 'good,': 0.93; 'many,': 0.93; 'subject:want': 0.93; 'luck': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:to:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=m8rmHKeiGd6lHJ7n3K87Hs6jsAq30AjWDG03M4x6BbY=; b=wZdSErk4iZucnN1msofkhkr2KKGd4PxMHe6ShlDwrMw9W80bVsONkwl6FROvpa80+l R6xjRjXZaj6rbcycwtjMHpJvXgUKUWRfDtip9Qm5Z+IxIWicZagtgkFrC94uQsliK2eJ rfW5Vsc7ceSSuwCql9JlXstQbkacVwD2xfLmnO+IFYRDgX/IJY/mW/RD9jdTJNPklTph kMVCWm3TIPAYR32dZKY0S0j3dicJykLzyC/LV740EFR/Xxpc0x08tJpvECPa3/Msejul yGWWDRbSZ6F/JOhTcPhs2wdkZNCf28T6ELkNqc85C9qRhCn+izz1VNR5p0jB0Uv5J7hP 1L5Q==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:to:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=m8rmHKeiGd6lHJ7n3K87Hs6jsAq30AjWDG03M4x6BbY=; b=W3K4Vz5EiiiQ2xboE2t5OA4jj+ZgrhEBS3phPoKiI6mpfyQz1hQiZ8Tj4gKipwaoZR Uvi/H3ELVkKlHj7zds8oW+g1kx4OBr97K4P4U78btEDwPnP8MkHxxWuaJr40i2/K2JFq DnMETnO2ibkTSMjsYXMrvVCrnEYUt+p71kKect0KH2EStYmTkpdCs6laUadsBaIkOnCD 08luwWLFl0R4LM6vOqTw81XgpMOEgGMMeRuELo9yMuf7lJ9zGzW8cCZHWuwKINocOyoL V3a5on3ORxFIVQrhhjtiwgSItgwj4mCDIQHg8BYF/8mnAXwiZYZlPsHoqJVN0GlNH2P3 RpUg==
X-Gm-Message-State AG10YOSZVAzTgOWOSoYHFkhSwKOb/8cQB2Jd2KM+YvI+DZiN3B6Q9smyqZJrYSnEMeurQg==
X-Received by 10.140.136.146 with SMTP id 140mr7649765qhi.6.1454026903356; Thu, 28 Jan 2016 16:21:43 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
In-Reply-To <n8ea4q$muu$1@gioia.aioe.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102202

Show key headers only | View raw



On 01/28/2016 07:01 PM, Fillmore wrote:
>
> I learned myself Perl as a scripting language over two decades ago. 
> All through this time, I would revert to it from time to time whenever 
> I needed some text manipulation and data analysis script.
>
> My problem? maybe I am stupid, but each time I have to go back and 
> re-learn the syntax, the gotchas, the references and the derefercing, 
> the different syntax between Perl 4 and Perl 5, that messy CPAN in 
> which every author seems to have a different ideas of how things 
> should be done....
>
> I get this feeling I am wasting a lot of time restudying the wheel 
> each tim...
>
> I look and Python and it looks so much more clean....
>
> add to that that it is the language of choice of data miners...
>
> add to that that iNotebook looks powerful....
>
> Does Python have Regexps?
>
> How was the Python 2.7 vs Python 3.X solved? which version should I go 
> for?
>
> Do you think that switching to Python from Perl is a good idea at 45?
>
> Where do I get started moving from Perl to Python?
>
> which gotchas need I be aware of?
>
> Thank you
Python does "have" regex..  it is not part of the language, but is in a 
separate module.  If you are used to the way that regex feels "natural" 
in perl, you will have some "adjusting" to do.

Python 2 vs python 3 is anything but "solved".  You will hear arguments 
in favor of both.  I will not make a suggestion, because I do not have 
on my flame-resistant clothing

I am adding Python 3 to my "bag of tricks" after many, many years of 
perl programming, and I am significantly older than you.  I suggest that 
you just plunge in, and see what you think.  It just is NOT that difficult.

There are lots of tutorials and books..  some good, some less so. The 
tutorials on python.org are (IMHO) a very good place to start, though.

Gotchas?  If you are learning Python after years of perl use, the 
"gotchas" would be another book just by themselves.  Be prepared to do a 
LOT more typing.

Long and short of it...  just dig in.  I would offer one piece of 
advice, though...  you will probably be better off if you simply view 
Python totally separately from perl..  sort of like learning a new 
spoken/written language.  Don't try to view concepts as a translation 
from perl to Python , but rather just view Python as if you were 
learning to program from scratch.  Comparisons will make it much more 
difficult, in several ways.

Best of luck to you, and I hope that you find Python to be too your liking.

Nathan

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

psss...I want to move from Perl to Python Fillmore <fillmore_remove@hotmail.com> - 2016-01-28 19:01 -0500
  Re: psss...I want to move from Perl to Python paul.hermeneutic@gmail.com - 2016-01-28 17:22 -0700
  Re: psss...I want to move from Perl to Python Nathan Hilterbrand <nhilterbrand@gmail.com> - 2016-01-28 19:21 -0500
    Re: psss...I want to move from Perl to Python Rick Johnson <rantingrickjohnson@gmail.com> - 2016-01-28 19:23 -0800
      Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-29 14:26 +1100
    Re: psss...I want to move from Perl to Python wxjmfauth@gmail.com - 2016-01-30 02:26 -0800
      Re: psss...I want to move from Perl to Python Fillmore <fillmore_remove@hotmail.com> - 2016-01-31 17:34 -0500
        Re: psss...I want to move from Perl to Python Michael Torrie <torriem@gmail.com> - 2016-01-31 16:45 -0700
        Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-02-01 10:48 +1100
        Re: psss...I want to move from Perl to Python Terry Reedy <tjreedy@udel.edu> - 2016-01-31 18:51 -0500
          Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-31 18:59 -0800
            Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-02-01 14:15 +1100
              Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-31 19:43 -0800
              Re: psss...I want to move from Perl to Python Rick Johnson <rantingrickjohnson@gmail.com> - 2016-02-02 14:53 -0800
  Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-29 11:25 +1100
    Re: psss...I want to move from Perl to Python Steven D'Aprano <steve@pearwood.info> - 2016-01-29 18:12 +1100
      Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-29 18:19 +1100
      Re: psss...I want to move from Perl to Python Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2016-01-29 09:12 +0000
        Re: psss...I want to move from Perl to Python James Harris <james.harris.1@gmail.com> - 2016-01-29 11:03 +0000
          Re: psss...I want to move from Perl to Python Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2016-01-29 12:21 +0000
            Re: psss...I want to move from Perl to Python Steven D'Aprano <steve@pearwood.info> - 2016-01-30 00:46 +1100
              Re: psss...I want to move from Perl to Python Ben Finney <ben+python@benfinney.id.au> - 2016-01-30 09:47 +1100
                Re: psss...I want to move from Perl to Python Steven D'Aprano <steve@pearwood.info> - 2016-01-30 22:12 +1100
            Re: psss...I want to move from Perl to Python Rick Johnson <rantingrickjohnson@gmail.com> - 2016-01-29 13:30 -0800
              Re: psss...I want to move from Perl to Python Fillmore <fillmore_remove@hotmail.com> - 2016-01-29 19:57 -0500
                Re: psss...I want to move from Perl to Python Ben Finney <ben+python@benfinney.id.au> - 2016-01-30 12:04 +1100
              Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-29 19:38 -0800
                Re: psss...I want to move from Perl to Python Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-01-31 11:18 +1300
                Re: psss...I want to move from Perl to Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-01-31 12:56 +1100
                Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-30 19:22 -0800
                Re: psss...I want to move from Perl to Python Cameron Simpson <cs@zip.com.au> - 2016-01-31 14:48 +1100
                Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-30 19:53 -0800
                Re: psss...I want to move from Perl to Python Cameron Simpson <cs@zip.com.au> - 2016-01-31 20:56 +1100
                Re: psss...I want to move from Perl to Python Paul Rubin <no.email@nospam.invalid> - 2016-01-31 09:45 -0800
                Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-31 18:08 -0800
                Re: psss...I want to move from Perl to Python Steven D'Aprano <steve@pearwood.info> - 2016-01-31 20:23 +1100
                Re: psss...I want to move from Perl to Python Cameron Simpson <cs@zip.com.au> - 2016-01-31 20:53 +1100
                Re: psss...I want to move from Perl to Python Paul Rubin <no.email@nospam.invalid> - 2016-01-31 09:49 -0800
                Re: psss...I want to move from Perl to Python Cameron Simpson <cs@zip.com.au> - 2016-02-01 08:16 +1100
                Re: psss...I want to move from Perl to Python Terry Reedy <tjreedy@udel.edu> - 2016-01-31 07:28 -0500
                Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-31 05:12 -0800
                Re: psss...I want to move from Perl to Python Rick Johnson <rantingrickjohnson@gmail.com> - 2016-01-30 14:25 -0800
              Re: psss...I want to move from Perl to Python Rustom Mody <rustompmody@gmail.com> - 2016-01-29 20:04 -0800
        Re: psss...I want to move from Perl to Python Random832 <random832@fastmail.com> - 2016-01-29 10:07 -0500
          Re: psss...I want to move from Perl to Python Fillmore <fillmore_remove@hotmail.com> - 2016-01-29 12:56 -0500
          Re: psss...I want to move from Perl to Python Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-01-30 11:21 +1300
        Re: psss...I want to move from Perl to Python sohcahtoa82@gmail.com - 2016-01-29 12:49 -0800
          Re: psss...I want to move from Perl to Python Rick Johnson <rantingrickjohnson@gmail.com> - 2016-01-29 14:29 -0800
      Re: psss...I want to move from Perl to Python Cameron Simpson <cs@zip.com.au> - 2016-01-30 10:48 +1100
  Re: psss...I want to move from Perl to Python Cameron Simpson <cs@zip.com.au> - 2016-01-29 12:20 +1100
  Re: psss...I want to move from Perl to Python Paul Rubin <no.email@nospam.invalid> - 2016-01-28 18:06 -0800
    Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-29 13:34 +1100
      Re: psss...I want to move from Perl to Python sohcahtoa82@gmail.com - 2016-01-29 12:41 -0800
        Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-30 07:54 +1100
        Re: psss...I want to move from Perl to Python Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-01-30 11:27 +1300
    Re: psss...I want to move from Perl to Python Michael Torrie <torriem@gmail.com> - 2016-01-28 21:42 -0700
    Re: psss...I want to move from Perl to Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-01-29 08:54 -0500
  Re: psss...I want to move from Perl to Python Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-01-29 08:24 +0200
  Re: psss...I want to move from Perl to Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-01-29 08:50 -0500
  Re: psss...I want to move from Perl to Python Fillmore <fillmore_remove@hotmail.com> - 2016-01-29 12:04 -0500
  Re: psss...I want to move from Perl to Python "Sven R. Kunze" <srkunze@mail.de> - 2016-01-29 18:39 +0100
  Re: psss...I want to move from Perl to Python Fillmore <fillmore_remove@hotmail.com> - 2016-01-29 15:42 -0500
    Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-30 07:51 +1100
    Re: psss...I want to move from Perl to Python Nathan Hilterbrand <nhilterbrand@gmail.com> - 2016-01-29 16:38 -0500
    Re: psss...I want to move from Perl to Python Cody Piersall <cody.piersall@gmail.com> - 2016-01-29 15:50 -0600
      Re: psss...I want to move from Perl to Python Josef Pktd <josef.pktd@gmail.com> - 2016-01-29 16:48 -0800
    Re: psss...I want to move from Perl to Python Terry Reedy <tjreedy@udel.edu> - 2016-01-29 22:08 -0500
    Re: psss...I want to move from Perl to Python Chris Angelico <rosuav@gmail.com> - 2016-01-30 14:12 +1100
  Re: psss...I want to move from Perl to Python Ben Finney <ben+python@benfinney.id.au> - 2016-01-30 09:49 +1100
  Re: psss...I want to move from Perl to Python Larry Hudson <orgnut@yahoo.com> - 2016-01-29 22:22 -0800
  Re: psss...I want to move from Perl to Python "Sven R. Kunze" <srkunze@mail.de> - 2016-01-30 13:43 +0100
  Re: psss...I want to move from Perl to Python <paul.hermeneutic@gmail.com> - 2016-02-02 10:00 -0700
  Re: psss...I want to move from Perl to Python "Martin A. Brown" <martin@linux-ip.net> - 2016-02-02 13:04 -0800
  Re: psss...I want to move from Perl to Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-02 19:36 -0500

csiph-web