For more information... RTFM!
NAVIGATION
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

show_null

Convert ASCII NUL ("\0") characters into a literal "\" and "0" character pair.

Availability

Availability

This filter was introduced in version 5.4.0, and is therefore not available for use with any earlier Interchange version.

Example

$Tag->filter({
    op => 'show_null',
    body => "foo\0bar\nbaz",
});

Results in:

foo\0bar
baz

Source code

sub {
    my $val = shift;

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

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Friday 23 February 2007 at 5:21 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us