TITLE

Data::Replace - data replacing implemented in PIR

SYNOPSIS

    ...

    load_bytecode "library/Data/Replace.pir"

    .local pmc replace

    replace = get_hll_global ['Data::Replace'], 'replace'

    replace( array, old, new )

    ...

DESCRIPTION

Replaces every occurrence of a specified PMC with another PMC in a nested, possible self-referential data structure.

FUNCTIONS

This library provides the following function:

replace( where, old, new )
Replaces every "old" with "new" inside the aggregate "where".

AUTHOR

Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.

COPYRIGHT

Copyright (C) 2004-2008, Parrot Foundation.