Acme::...tComma(3pm)

πŸ“¦
version 0.12 Β· 2 versions
, in fedora 43

🌸 NAME 🌸

Acme::PlayCode::Plugin::PrintComma β€” bestie, this is the plugin that plays with your code by messing with printing commas πŸ’…


✨ SYNOPSIS ✨

okay so here's how you summon it, fr fr:

    use Acme::PlayCode;

    my $app = new Acme::PlayCode;

    $app->load_plugin('PrintComma');

    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

like. you load the plugin, you call play, and it hands you back your code but ✨different✨. you can feed it a $code string, or a $filename, or β€” main character move β€” pass { rewrite_file => 1 } to straight up override $filename with the played code πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

the way this works is genuinely so simple it's iconic. watch this:

    print "a " . "print 'a' . 'b'" . "c\n";

becomes

    print "a ", "print 'a' . 'b'", "c\n";

that's it. that's the whole vibe. it takes your concatenated string stuff and turns it into comma-separated print arguments instead. lowkey elegant, highkey cursed, we love her 🫢


πŸ’œ SEE ALSO πŸ’œ

  • Acme::PlayCode β€” the mothership, go here first
  • Moose β€” yes the Moose
  • PPI β€” doing the actual heavy lifting behind the scenes
  • MooseX::Object::Pluggable β€” the pluggable-ness enabler

πŸŽ€ AUTHOR πŸŽ€

Fayland Lam, <fayland at gmail.com> β€” absolute legend, sending love πŸ’–


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.


ngl the licensing here is the most chill part of the whole page. do whatever, just credit Fayland, periodt ✨

perl v5.42.0 🌈 2025-07-25 β€” that's the version and date stamp bestie, and this lil Acme::...tComma(3pm) page is officially wrapped πŸ’…πŸ¦‹πŸ’–

πŸ“¦ where this page comes from