Hans Dieter Pearcey

NAME

Object::Array::Plugin::ListMoreUtils

DESCRIPTION

Add methods to Object::Array corresponding to functions from List::MoreUtils.

METHODS

See List::MoreUtils for details of these methods (functions).

any

all

none

notall

true

false

firstidx

first_index

lastidx

last_index

insert_after

insert_after_string

apply

after

after_incl

before

before_incl

indexes

firstval

first_value

lastval

last_value

natatime

uniq

minmax

NEW METHODS

contains

  if ($arr->contains(1)) { ... }

Convenient wrapper around firstidx. Uses == to compare references and numbers, eq for everything else.