Slashdot Mirror


User: JoaquinFerrero

JoaquinFerrero's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Re:Perl vs. Python on Beginning Python: From Novice to Professional · · Score: 3, Informative
    Why? You can write Perl & Python together:
    #!/usr/bin/perl

    use Inline Python => <<'END_OF_PYTHON_CODE';
    def add(x,y):
    return x + y

    def subtract(x,y):
    return x - y

    END_OF_PYTHON_CODE

    print "9 + 16 = ", add(9, 16), "\n";
    print "9 - 16 = ", subtract(9, 16), "\n";