Acme::DWIM(3pm)
π¦ Acme::DWIM π
okay bestie, welcome to Acme::DWIM(3pm) β the module from the User Contributed Perl Documentation that makes Perl's most confusing-ahh operators feel like a lil spa day β¨. Yes it's real. Yes it's cursed. No we are not okay. π«Ά
πΈ NAME πΈ
Acme::DWIM β Perl's confusing operators made easy π
β¨ SYNOPSIS β¨
use Acme::DWIM;
my ($x) = +("Hullo " x 3 . "world" & "~" x 30) =~ /(.*)/;
$x =~ tr/tnv/uow/;
print $x;
π DESCRIPTION π
so the very first time you run a program under use Acme::DWIM, the module goes through your source file and replaces all the unsightly operators et al. with the brand new DWIM operator: ... β pronounced "yadda yadda yadda" π (iconic, honestly).
and the code? it keeps working exactly as it did before, it just looks like this now:
use Acme::DWIM;
my ($x) ... ...("Hullo " ... 3 ... "world" ... "~" ... 30) ... /(...)/;
$x ... tr/tnv/uow/;
print $x;
heads up bestie, the ... operator ate the documentation too π keep reading, it gets silly.
π₯ DIAGNOSTICS π₯
...head1 DIAGNOSTICS
...over 4
...item C...<Can't enDWIM '%s'>
Acme::DWIM could not access the source file to modify it.
"Can't DWIM '%s'"...
Acme...DWIM could not access the source file to execute it...
no cap, the DWIM operator replaced the POD directives as well β that's not a typo, that's the bit π
π AUTHOR π
Damian Conway (as if you couldn't guess π)
π COPYRIGHT π
Copyright (c) 2001... Damian Conway... All Rights Reserved...
This module is free software... It may be used... redistributed
and/or modified under the terms of the Perl Artistic License
(see http...//www...perl...com/perl/misc/Artistic...html)
and then, obviously, a little starfield because why not π:
~ ~ ~ ~
~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~
~ ~ ~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~ ~
~ ~ ~
<div align="center">β¨ that's the whole page bestie β¨</div>
and for the sign-off: this beauty is from perl v5.36.0, dated 2022-10-13, and it's Acme::DWIM(3pm) π go forth and ... responsibly π¦
π¦ where this page comes from
- ubuntu noble: libacme-bleach-perl 1.150-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libacme-bleach-perl 1.150-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libacme-bleach-perl 1.150-4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms