I've programmed in Perl but I'm no Perl-programmer notwithstanding.
Some more or less obvious reasons I see...
Abstraction of diverse Unix utilities' interfaces.
no other language comes close in conciseness when it comes to
text processing and interacting with the OS (filesystem, pipes,..)
.. i could imagine e.g. a library for a language getting there.
Especially a language that is particularly versatile and adaptable to defining DSLs.
But for system automation tasks in a Posix OS, when you want to go above
the level of a simple shell script and use complex data structures, Perl
is the only language that fills that gap, any other language is
oververbose (lacks conciseness).
On Tue, 16 Apr 2024 20:47:47 +0000, Javier wrote:
But for system automation tasks in a Posix OS, when you want to go above
the level of a simple shell script and use complex data structures, Perl
is the only language that fills that gap, any other language is
oververbose (lacks conciseness).
Still some limitations in its data structures, though.
I see Perl 5.38 has
added an rCLexperimentalrCY class feature, but it doesnrCOt do multiple inheritance or metaclasses.
Also IrCOm not sure if classes are first-class--
objects or not.
Perl has had support for object-oriented programming (with multiple inheritance) for many years -- too many for me to remember.
On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
Perl has had support for object-oriented programming (with multiple
inheritance) for many years -- too many for me to remember.
Then why this new rCLclassrCY thing in 5.38?
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
Perl has had support for object-oriented programming (with multiple
inheritance) for many years -- too many for me to remember.
Then why this new rCLclassrCY thing in 5.38?
It's explained reasonably well at the top of the "perldoc perlclass" documentation in Perl 5.38:
On Wed, 17 Apr 2024 16:59:06 -0700, Keith Thompson wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
Perl has had support for object-oriented programming (with multiple
inheritance) for many years -- too many for me to remember.
Then why this new rCLclassrCY thing in 5.38?
It's explained reasonably well at the top of the "perldoc perlclass"
documentation in Perl 5.38:
It says there is already supposed to be a mechanism for this, it doesnrCOt explain why that isnrCOt good enough.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 16:19:48 |
| Calls: | 810 |
| Calls today: | 1 |
| Files: | 1,287 |
| D/L today: |
10 files (21,017K bytes) |
| Messages: | 193,384 |