• And more about Perl and Python..

    From Wisdom90@21:1/5 to All on Wed Mar 11 12:54:30 2020

    As you have noticed i have just provided you with PerlMaple package..

    And more about Perl and Python..

    I know how to program in Perl, and i think Perl is powerful and is
    better than Python, and you can in Perl set a property or a method of a
    class to be private or public by the following Perl methodoly, read my following program to notice it:


    package class_A;

    my $private_method = sub { #_{

    # Declaring a private method. The method apparantly can not be called
    # from outside this package.

    my $self = shift;
    $self->echo("private_method was called");

    }; #_}

    sub new { #_{

    my $class = shift;
    my $self = {};
    bless $self, $class;
    return $self;

    } #_}

    sub public_method {
    my $self = shift;

    $self->echo("public_method was called, going to call private method");

    # Call private method.

    sub echo { #_{
    my $self = shift;
    my $text = shift;

    print "$text\n";

    } #_}



    use warnings;
    use strict;
    use class_A;

    my $ca = class_A->new();


    And here is also why Python is not good: Python has a global interpreter
    lock, but Perl threads can execute in parallel, read this:

    What is the Python Global Interpreter Lock (GIL)?


    And RPerl compiler for Perl is here..

    I also use Perl, so here is an interesting new website about RPerl and Perl:


    And about Perl in 2020: Is It Still Worth Learning Now?

    Read more here:


    Thank you,
    Amine Moulay Ramdane.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)