Acme::...Single(3pm)
π Acme::...Single β bestie edition π
okay so real talk, this page lives in the User Contributed Perl Documentation section, and its title got so long the header just gave up and wrote Acme::...Single(3pm). The actual name of this thing? Acme::PlayCode::Plugin::DoubleToSingle. it plays with your code. with Single and Double. yes that's the whole vibe. π
β¨ NAME β¨
Acme::PlayCode::Plugin::DoubleToSingle β Play code with Single and Double π
πΈ SYNOPSIS πΈ
like, here's how you'd actually use it, no cap:
use Acme::PlayCode;
my $app = new Acme::PlayCode;
$app->load_plugin('DoubleToSingle');
my $played_code = $app->play( $code );
# or
my $played_code = $app->play( $filename );
# or
$app->play( $filename, { rewrite_file => 1 } ); # override $filename with played code
so you load the plugin, you play, and if you pass that rewrite_file => 1 option it will literally override $filename with the played code. iconic. π¦
π DESCRIPTION π
the way this plugin just swaps your quote styles around... let me show you. it takes this:
my $a = "a";
my $b = "'b'";
my $c = qq~c~;
my $d = qq~'d'~;
my $e = q{e};
my $f = 'f';
if ( $a eq "a" ) {
print "ok";
}
and it becomes this:
my $a = 'a';
my $b = q~'b'~;
my $c = 'c';
my $d = qq~'d'~;
my $e = q{e};
my $f = 'f';
if ( $a eq 'a' ) {
print 'ok';
}
see what happened?? π "a" became 'a', qq~c~ became 'c', "ok" became 'ok' β but qq~'d'~ stayed exactly as it was, q{e} stayed, 'f' stayed. the ones with quotes hiding inside them got left alone because obviously. it's giving thoughtful. periodt. β¨
π«Ά SEE ALSO π«Ά
Acme::PlayCodeMoosePPIMooseX::Object::Pluggable
π AUTHOR π
Fayland Lam, <fayland at gmail.com> β shoutout, legend behaviour fr fr π
π COPYRIGHT & LICENSE π
Copyright 2008 Fayland Lam, all rights reserved. π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
lowkey important: those are the actual terms, bestie, don't go making stuff up about it π
and that's the whole page!! built on perl v5.42.0, dated 2025-07-25, and it's still out here slaying as Acme::...Single(3pm) π§π bye bestie, go play some code β¨
π¦ where this page comes from
- fedora 43: perl-Acme-PlayCode 0.12-43.fc43 Β· 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