For more information... RTFM!
NAVIGATION
RECENTLY VIEWED
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

null_to_colons

Replaces ASCII NUL ("\0") characters with a double colon ("::").

Also see the colons_to_null filter.

Example

$Tag->filter({
    op => 'null_to_colons',
    body => "Kevin\0Walsh",
});

Results in:

Kevin::Walsh

Source code

sub {
    my $val = shift;

    $val =~ s/\0+/::/g;
    return $val;
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Monday 26 February 2007 at 12:00 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us