Any tips for a new perl user?

Any tips for a new perl user?

Get out now

Related, how do I install a dependency? I need this netscape thing from cpan. And is pinto really a package manager?

If you are on Linux, you can just enter a CPAN prompt in your terminal and type "install ".

Hey thanks

No problem. I forgot to mention that you need stuff like make and gcc installed, otherwise module installations through CPAN will fail.

What are you trying to get into?

Perl has a lot of advantage over other scripting langs like python

I like the hash data structures better for nesting

#!/usr/bin/perl #perl6 is for faggots
use strict; use warnings;
undef my %hash;
open IN, "mydata.txt";
# data formatted like
# Country,City,LastName,First Name
while(){
chomp;
my ($cnt,$cty,$ln,$fn) = split /,/, $_;
push @{$hash{$cnt}{$cty}{$ln}}, $fn;
}close IN;
foreach my $cnt (sort $a$b keys %hash){
foreach my $cty (sort $a$b keys %{$hash{$cnt}}){
foreach my $ln (sort $a$b keys %{$hash{$cnt}{$cty}}){
foreach my $fr (@{$hash{$cnt}{$cty}{$ln}){ print "$cnt\t$cty\t$fr\t$ln\n"; }
}}}
print "OP is a faggot\nend of code\nXxXH@xORXxX\n";

stop wasting your time and learn javascript instead

What will take to take someone like who has no programming experience to learn Perl? I always wanted to know to create scripts and fiddle with irssi.

lol

I learned almost all the basics of perl in about a month or two. The Llama book is GOAT

I'm also not a brainlet

> t. salty js nu-male

ok, but don't say i didn't warn you. perl is DED

Isn't the Llama book the one made in 2001?

LOOOOOOOOOOOOL

Is it true python has replaced perl? I'm thinking about learning perl, is it a waste of time to learn it in 2017?

Perl is the 9th most used language. PHP is 6th. Consider that.

Perl remains unbeaten

Can I get a good paying job if I learn perl?

Build software with the intent that it will be in prod forever. That's basically perl's claim to fame. Also get used to having cpan as your homepage

nice source user. i believe you!

yes. and javascript has replaced python (except for machine learning)

no

Look at job lists, you can

Why do people forget that metasploit was written in Perl? Is the best for prototyping, the bes for scripting, PDL makes it great for data, and PCRE are killer.

>Llama book
updated in 2011 but yes it's an oldie but a goodie.

perl is the language of gods
js is the language of fags

learn ruby instead

>Is it true python has replaced perl? I'm thinking about learning perl
Short answer: Yes
Long answer: It depends

Perl is heavily used in different sectors of CS. For example, in Europe tons of biologists use Perl but in the US more use Python.

I also hear about a lot of servers and web thingys are still using Perl, which explains the need for people to learn Perl so yes you can get a good paying job if you know Perl

>$variable
>@array
>language of the gods

Hahahahaha kys yourself

>learn ruby instead
ruby : BLACKED :: perl : Tushy

Nice argument fagtron, you sure showed him with those hot opinions

Metasploit2 is in Ruby lol

stop watching porn

>@list = ( "You", "Are", "a", "Retard");
> $list[-1] = "Faggot";

See the poetry of Perl?

How many people still use perl 5 over 6?

you can do the same thing in python without the stupid @ and $

>Moving the goalposts

nearly everyone?

i complained about literally the same thing idiot

don't use it

But you know the data structure type in Perl
$list[0];
$hash{0};

list[0]
hash[0]

Perl was developed by a linguist. It's kind of grammatical.

Tiobe index

i literally learned perl in a week by just editing other people's scripts. no previous coding experience or anything, just needed a quick scripts to do some stuff on my web sight and ended up writing a bunch of more web software

probably not the best practise user.
get a book called programming perl please

i miss world4ch /prog/ and all the perl memes ;_;

it is, because it shows you what stuff does when you tinker with it. and when you don't understand what something is, you look it up. then when you write your own code you use ``best practices''.

it's like when we were kids and we open shit up, no mechanical engineering books required

yeah but you're missing out on things or little tricks, especially if the code isn't documented. at least download a copy of learning/programming perl for references

Is Perl the most oldfag language?

>when you don't understand what something is, you look it up.

that's literally what i said

Yes

bring back textboards