| parrotcode: Utilities for string processing | |
| Contents | Libraries | 

['String';'Utils'] - Utilities for string processing

    load_bytecode 'String/Utils.pbc'
    .local pmc chomp
               chomp = get_global ['String';'Utils'], 'chomp'
    $S0 = chomp($S0)      # use default record separator ("\n")
    $S0 = chomp($S0, $S1) # use custom record separator

    $S0 = chomp( $S1 )
    $S0 = chomp( $S1, $S2 )
$S2 from tail of input string $S1 and return in $S0. If $S2 is not specified, the default \n is used.
Jerry Gay a.k.a. particle
|  |   |