Parrot::OpsRenumber - Methods holding functionality for tools/build/opsrenumber.pl.
use Parrot::Config qw( %PConfig ); use Parrot::OpsRenumber; $self = Parrot::OpsRenumber->new( { argv => [ @ARGV ], nolines => $nolines_flag, moddir => "lib/Parrot/OpLib", module => "core.pm", inc_dir => "include/parrot/oplib", inc_f => "ops.h", script => "tools/build/opsrenumber.pl", } ); $self->prepare_ops(); $self->renum_op_map_file( $PConfig{MAJOR} );
Parrot::OpsRenumber provides methods called by tools/dev/opsrenumber.pl.
new()
Inherited from Parrot::Ops2pm::Base and documented in lib/Parrot/Ops2pm/Base.pm.
prepare_ops()
renum_op_map_file()
Purpose
This method renumbers src/ops/ops.num based on the already existing file of that name and additional .ops files.
Arguments
Two scalars. First is Parrot major version number. Second is optional: string holding name of an .ops file; defaults to src/ops/ops.num. (Implicitly requires that the argv and script elements were provided to the constructor.)
argv
script
Return Value
Returns true value upon success.
To install Parrot::Op, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parrot::Op
CPAN shell
perl -MCPAN -e shell install Parrot::Op
For more information on module installation, please visit the detailed CPAN module installation guide.