NAME ^

gen_mutable_pmc.pl - Generates the Mutable PMC

SYNOPSIS ^

    % perl gen_mutable_pmc.pl pmc_template output_file

DESCRIPTION ^

Takes a template for the mutable PMC, and fills in the missing v-table methods with methods that simply delegate them to the held value.

FUNCTIONS ^

generate_meth

Generates a forwarder method for the PMC.

slurp

Reads in an entire file.

spew

Writes a string to a file, replacing or creating it as needed.

extract_matches

Extracts all items matching the given pattern and puts $1 into an array.


parrot