Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Perl!

Name: Anonymous 2015-09-09 15:36

So, I've always heard Perl is a bad language, write only etc. I've recently learned it, and now I can write some serious Perl. And you know what? I like it. It's not elegant as Haskell or clean as Python, but if you know it well you can make it elegant and clean.

Actually, I like it more than FIOC. And Python used to be my preferred language! In a sense it's like a reverse Randal (see https://xkcd.com/353/ alt text).

So, some people think Perl is in decline, being replaced by more modern languages. [citation needed].

What do you think of this? Is there any Perl lover here who can tell me it's not gone? I want Perl among us for years to come.

Can we has it?

Name: Anonymous 2015-09-17 18:57

### Containers
# In Perl 6, values are actually stored in "containers".
# The assignment operator asks the container on the left to store the value on
# its right. When passed around, containers are marked as immutable.
# Which means that, in a function, you'll get an error if you try to
# mutate one of your arguments.
# If you really need to, you can ask for a mutable container using `is rw`:
sub mutate($n is rw) {
$n++;
say "\$n is now $n !";
}

(from http://learnxinyminutes.com/docs/perl6/ )

Perl 6 is the next big thing. Just installed rakudo and played a bit with the REPL, it's pretty good!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List