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

nullselect

Split the input on ASCII NUL ("\0") characters and returns the first non-null element in the resulting list.

Also see the oneline filter.

Example

$Tag->filter({
    op => 'nullselect',
    body => "One\0Two\0Three\0\0\0",
});

Results in:

One

Source code

sub {
    my @some = split /\0+/, shift;

    for(@some) {
        return $_ if length $_;
    }
    return '';
}

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