[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: perl-logo.jpg (124 KB, 1400x560)
124 KB
124 KB JPG
any point to learning this? or is it just boomerslop?
>>
It forces you to learn regular expressions, which is useful outside of Perl. There might be something in CPAN that is useful to you. But unless you have to maintain someone else's Perl code (my condolences), write Python.
>>
>>107522855
Gen-X and above, so not just boomers
But I wouldn’t use it for a greenfield project more than 10 lines long
>>
>>107522855
imagine a boomer giving you sloppy
>>
>>107522855
Boomerslop. It was popular in the 90s when there weren't any other decent scripting languages.
>>
>>107522855
The fact that you need to ask whether there's "any point to" learning something means you're a zoomer failure who will never, ever accomplish anything in his life.

You have no idea how to be a programmer, and you never will. It's not in your biochemical makeup. You will not even be able to interpret this post correctly. You will probably think I'm just saying "perl gud".

You're a husk and you'll never be a complete man.
>>
>>107523924
based callout
>>
>>107523853
Can't tell if it's comical or sad that xshits are crawling to 4chan to attentionwhore in their 50s
>>
I use Perl a lot.
If you're asking because you want a job, first of you are a retard because the answer is obvious, and second, just learn Python.
If you're asking if you want to have some fun, then Perl is definitely fun, but again I'm biased. A lot of Perl concepts are closely tied to how shit works in *nixland, so if you use Linux/Bash a lot already, Perl will feel like a natural transition.
Most of the criticisms against Perl are also completely retarded, and written by people who have never ever looked at a fucking Perl program in their life. Perl is as old as Python, and Perl is still updated with new features to this day so it's not like it's abandonware either.
>>
I once tried to use Perl to replace Python and once I realized that it just calls curl (the binary lmao) behind my back, I just decided to write my script in bash. Perl is overly complex slop for boomers who wanted to pretend that they're doing something else than writing write-once run never scripts.
>>
>>107524351
>it just calls curl (the binary lmao) behind my back
context of what you were doing and library you were using? otherwise you are a fucking liar
>Perl is overly complex slop
filtered by sigils and bog standard C-style syntax
>>
>>107524376
How am I supposed to recall which cpanslop I used like 10 years ago? I just needed to do some http requests that were nicer than in bash, and since then I accepted the fact that bash or a real programming language are the way to go.
>>
>>107524391
surely since you "investigated" and "realized" that curl was used by whatever fucking cpan library you used, you would more or less remember which one, correct?
the truth is that you're lying for no fucking reason and you don't want to name a single library because you know there isn't a single line in there that uses curl, you lying retard.
>I accepted the fact that bash or a real programming language are the way to go
have fun writing anything serious in bash kek
>>
>>107524413
Yea, I'm sure I'd remember everything I don't like and seethe about it daily, I wouldn't just forget about it the very next day just I will forget that this thread even existed.
>>
>>107524422
you could alternatively just admit you're lying
I will accept your concession
>>
>>107524430
Why would I need to lie about this shitlang being shit? It's not my fault that you can't accept reality, unc.
>>
>>107524446
>Why would I need to lie about this shitlang being shit?
Good question, why don't you answer that?
It's not like there aren't any criticisms to make against Perl and they're legit too, so I don't know why you would make shit up about curl being invoked in secret or whatever when you know it's not true. Again, just point me to whatever line in LWP, or net::http, uses curl. do it
>>
Perl was actually kind of based when system admin was a job. Basically all these system admins would have these crazy ass scripts that would parse and loop through configs, emails, logs, just fucking everything. It was actually kind of cool and hacky. But then docker killed off that job entirely. It's essentially a dead language now. It was never really even used for websites since PHP kicked its ass out of that space. It's basically a hard pass now days. Learning some regex is fun, but even the tools of that that time like sed, awk, and grep are used less. Terminal shit is fun. But kids are all about web ui. Also ya like that other guy said. Just use python.
>>
>>107524480
Maybe you're just mentally ill and can't cope with reality, demented unc.
>>
>>107522855
unixy, bashism
>>
>>107522855
it's fun
>>
File: lmao.png (86 KB, 498x288)
86 KB
86 KB PNG
>>107524544
>uses retarded faggot zoomer lingo
>lies about things that can be verified as false
>lies about his experience to pretend he uses a deadlang
>lies because he can't admit he was filtered out by basic C-style syntax
>resorts to same insults when called out for lying
take your meds
>>
File: kvlt-sicp.jpg (243 KB, 1200x1730)
243 KB
243 KB JPG
At this point just learn JS. It has regexp slop too and opposed to perl, JS can (still) get you a job in variety of domains.
>>
>>107524585
>>lies about his experience to pretend he uses a deadlang
demented unc really just read "I tried to use perl 10 years ago" and understood it as me using it for past 10 years, lmaooo no cap nobody can be this retarded
>>
c go perl
>>
>>107522855
perl kinda has shit design imo
the distinction between variable types are retarded
my $scalar = some_function_that_returns_hash; # retrieve as scalar
foreach (my ($k, $v) = %$scalar) {}; # now turn into hash

it's also unreadable write-only and its function definition doesn't even have syntax for parameters, like what the fuck, perl syntax is clearly based on C and you don't have that feature
sub some_function # (whereis, myparams, hello)
{
my ($arg1, $arg2) = @_;
}

there's absolutely no reason for perl to have convoluted mess of a syntax, when it's not a low-level language like C
>>
>>107522855
I hate Perl.
>>
>>107522855
Unc coded
>>
>>107525208
>kinda
Python replaced Perl in under 2 weeks
>>
>>107525208
>sigils
once you get used to them, they're nice. it's a nice indicator of the form of the variable and makes it easy to grasp at a glance. Allows a lot of shorthands that are pretty neat also.
it's not for everyone, but it's one of the great (and awful) things about Perl.
>function signatures (parameters)
old news, this is now enabled by default
>This facility must be enabled before it can be used. It is enabled automatically by a use v5.36 (or higher) declaration, or more directly by use feature 'signatures', in the current scope.
Not the best design of the language but once you get used to it, it's whatever. It also makes it easy to have a function with an unknown amount of parameters though. I think it's better that away, but I'm used to it
>there's absolutely no reason for perl to have convoluted mess of a syntax
The syntax is just different. The good thing about it though is that there are many ways to write the same thing. That's the most fun thing about Perl and why I stick with it to this day.
>>
>>107525280
I'm getting dejavu from an internet argument with some retard who said similar unintelligible stuff about hungarian notation.
I hope you and your whole family will die in an inferno blast for this.
>>
>>107525352
What I said is only unintelligible if you have brain damage and can't read
>>
>>107525363
ok midwit
>>
>>107524413
>or a real programming language
>>
>>107522855
That's exactly what I'm asking myself about ruby right now. Tried it for the last day of AOC and am baffled by how people can use it. From what I gather, LSPs for it provide almost no help at all.
I'm like 30 lines into a basic script and am basically guessing at method names and types, hoping the variables are what I think they are and I didn't misspell or misremember a method.
Python and javascript are dynamic too but somehow I've never had this issue with them.
>>
>>107525509
Just run the script and if it works it works, usecase for LSP?
>>
>>107525520
>start typing method name
>it's suggested
>hit tab
>guaranteed to be valid

or

>hmm what's that method I need again?
>type .
>all methods on the object are suggested

In ruby:
>type .
>begin bruteforcing method names
>>
File: screenshot.png (8 KB, 446x70)
8 KB
8 KB PNG
>>107525569
t.
>>
>>107525569
Just run the script. If the name isn't valid, it will tell you at compile time before it actually executes. Alternatively, read the documentation.
>>
>>107525574
>>107525575
>just memorize everything and don't make mistakes bro

No wonder ruby became a deadlang
>>
>>107525613
I'm a C++ programmer, what do you think would happen if I started forgetting things or made mistakes?
>>
>>107525613
>just memorize everything
You can refer back to the documentation whenever you want. It's not like you get 5 minutes to read it and then it's gone for good.

>don't make mistakes bro
The only thing that will happen if you make a mistake is that the compiler will tell you it found a mistake. Nobody's going to shoot you in the back of the head as soon as the compiler spits out an error.
>>
what this thread proves is that pythonistas are completely retarded, can't read a documentation and near their IDE to tell them what to do
Perl and Ruby chads are clearly more intelligent
>>
>>107526636
*need their IDE
>>
>>107525208
>its function definition doesn't even have syntax for parameters
It does now
https://perldoc.perl.org/perlsub#Signatures
>>
File: 2025-12-12_09-34-32.png (96 KB, 810x1052)
96 KB
96 KB PNG
One of Perl's biggest contributions to language design was to provide syntax for dictionary-like data structures. If you want to see how languages used to use dictionary-like data structures, open up Emacs and type:
M-x shortdoc RET hash-table RET
M-x shortdoc RET alist RET

Easy access to dictionaries (via syntax) was not common before Perl. Be thankful for Larry Wall's insight.
>>
https://yapcjapan.org/2025fukuoka/
>>
>>>107522855 (OP)
>The fact that you need to ask whether there's "any point to" learning something means you're a zoomer failure who will never, ever accomplish anything in his life.
>(leddit space)
>You have no idea how to be a programmer, and you never will. It's not in your biochemical makeup. You will not even be able to interpret this post correctly. You will probably think I'm just saying "perl gud".>
>(leddit space)
>You're a husk and you'll never be a complete man.
Jeez louise, you'll pop a vein seething that hard.
>>
>>107528901
you'll reach a point where this petty defense mechanism of yours will stop working
probably when the veneer of youth is gone and people start seeing what appears to be an adult and expecting you to generate actual value—of course by then, you will still be incapable
>>
>>107528956
>—
thanks F.A.E.
>>
>>107528970
my F-Droid keyboard comes with the em-dash—you should get you one too
>>
>>107525625
*Trump voice* disasters
>>
>>107522855
for get your father legacy
>>
>>107525208
>there's absolutely no reason for perl to have convoluted mess of a syntax, when it's not a low-level language like C
There's absolutely no reason for C to have a convoluted mess of a syntax either, because none of that has anything to do with being a "low-level language."
>>
File: briarB.png (18 KB, 399x306)
18 KB
18 KB PNG
perl still dont have timeouts on network functions
>>
>>107522855
it feels like shell, but actually proper language
writing shell scripts in python are too verbose and non-unix like
if you want to write shell scripts, but want actual lists and hashes instead of treating everything as strings it fills that niche
one of the best thing about perl is it's good backwards compatibility
python eats dicks with it's changes and breaking old stuff
seriously, creating pyenv (python version) and virtualenv, because you need exactly python 3.5 to be able to run something is pure retardation
>>
>>107523924
>projecting their insecurities
>>
>>107522855
it's alright in the niche where awk in a shell script isn't enough but setting up a python project would be overkill
>>
>>107522855
100% slop. If you want a better perl, learn ruby, but even that is kinda useless imo.
>>
>>107528098
>One of Perl's biggest contributions to language design was to provide syntax for dictionary-like data structures. If you want to see how languages used to use dictionary-like data structures, open up Emacs and type:
Languages used array-like syntax for dictionaries since the 60s. SNOBOL had it. The tranny language awk also had it.
>>
>>107525208
saying that the context is retarded just show you have no idea what you are talking about
it's like being annoyed that you pass pointers in C instead of copying everything everytime
$scalar here is a ref to the hash
obviously you need to dereference a reference which is done by using that data type sigil (% for hash, @ for list, $ for scalar)
you named the variable like a retard, what you got was a $ref or $hash_ref if you will
in C and Perl you have explicit control over passing data by value or pointer/reference (it's called pass by value as well, but value being a pointer/reference), so instead of passing sizeof (type) * length you just pass an address and you just pass sizeof pointer/reference which is just a number, not the whole fucking hash
>>
>>107522855
Bash and Perl have similar syntax, but the current "future" is webshit like clojure, js, php etc.

 basic="hello world\n"; echo -ne $basic; 

 $basic="hello world\n"; print $basic; 
>>
>>107522855
vibecode perl so your managers see how productive you are
>>
File: 947.jpg (76 KB, 792x598)
76 KB
76 KB JPG
>>107525509
>>107525569
>>start typing method name
>>it's suggested
>>hit tab
>>guaranteed to be valid
use the repl
>>
>>107522855
yes
>>
>>107523924
based
>>
>>107534861
At my shop, there is a manager that never bothered to learn Python, so he writes Perl and then vibe-translates into Python.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.