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?
>>62430183
If you are on Linux, you can just enter a CPAN prompt in your terminal and type "install <module_name>".
>>62430373
Hey thanks
>>62430408
No problem. I forgot to mention that you need stuff like make and gcc installed, otherwise module installations through CPAN will fail.
>>62430139
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(<IN>){
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";
>>62430139
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.
>>62430869
lol
>>62430952
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
>>62430869
> t. salty js nu-male
>>62430962
>>62431096
ok, but don't say i didn't warn you. perl is DED
>>62431019
Isn't the Llama book the one made in 2001?
>>62430869
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?
>>62431119
Perl is the 9th most used language. PHP is 6th. Consider that.
>>62431281
Perl remains unbeaten
>>62431314
Can I get a good paying job if I learn perl?
>>62430139
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
>>62431285
nice source anon. i believe you!
>>62431281
yes. and javascript has replaced python (except for machine learning)
>>62431335
no
>>62431335
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.
>>62431134
>Llama book
updated in 2011 but yes it's an oldie but a goodie.
>>62430869
perl is the language of gods
js is the language of fags
>>62430139
learn ruby instead
>>62431281
>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 >>62431335
>>62431408 so yes you can get a good paying job if you know Perl
>>62431573
>$variable
>@array
>language of the gods
Hahahahaha kys yourself
>>62431602
>learn ruby instead
ruby : BLACKED :: perl : Tushy
>>62431621
Nice argument fagtron, you sure showed him with those hot opinions
>>62431441
Metasploit2 is in Ruby lol
>>62431629
stop watching porn
>>62431621
>@list = ( "You", "Are", "a", "Retard");
> $list[-1] = "Faggot";
See the poetry of Perl?
How many people still use perl 5 over 6?
>>62431756
you can do the same thing in python without the stupid @ and $
>>62431782
>Moving the goalposts
>>62431776
nearly everyone?
>>62431792
i complained about literally the same thing idiot
>>62430139
don't use it
>>62431782
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.
>>62431396
Tiobe index
>>62430952
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
>>62432973
probably not the best practise anon.
get a book called programming perl please
i miss world4ch /prog/ and all the perl memes ;_;
>>62433000
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
>>62433115
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
>>62433066
Is Perl the most oldfag language?
>>62433173
>when you don't understand what something is, you look it up.
that's literally what i said
>>62433226
Yes
>>62433066
bring back textboards