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

You are not logged in

Powered by Interchange version 5.7.0

null_to_comma

Replaces ASCII NUL ("\0") characters with a comma (",").

Example

$Tag->filter({
    op => 'null_to_comma',
    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: Thursday 15 February 2007 at 10:08 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us