| parrotcode: Utilities for building Parrot | |
| Contents | Perl Modules |

lib/Parrot/BuildUtil.pm - Utilities for building Parrot

This package holds three subroutines: parrot_version(),
slurp_file,
and generated_file_header.
Subroutines are not exported--each must be requested by using a fully qualified name.

parrot_version() $parrot_version = Parrot::BuildUtil::parrot_version();
# $parrot_version is '0.4.11'
@parrot_version = Parrot::BuildUtil::parrot_version();
# @parrot_version is (0, 4, 11)
slurp_file($filename)generated_file_header($filename, $style)$filename is the name of the file on which the generated file is based, $style is the style of comment--'perl' and 'c' are permitted, other values produce an error.
Gregor N. Purdy. Revised by James E Keenan.
|
|
|