List::Flatten - Interpolate array references in a list


List-Flatten documentation  | view source Contained in the List-Flatten distribution.

Index


NAME

Top

List::Flatten - Interpolate array references in a list

VERSION

Top

Version 0.01

SYNOPSIS

Top

    use List::Flatten;

    my @foo = (1, 2, [3, 4, 5], 6, [7, 8], 9);
    # @foo contains 6 elements, 2 of them are array references

    my @bar = flat @foo;
    # @bar contains 9 elements, same as (1 .. 9)




EXPORT

Top

Exports the only function flat by default.

FUNCTIONS

Top

flat

Arguments: a list of arbitrary values, parantheses for flat are optional.

Returns: the same list, except that the values of any array references are interpolated into the list. Does not work recursively!

AUTHOR

Top

Darko Obradovic, <dobradovic at gmx.de>

BUGS

Top

Please report any bugs or feature requests to bug-list-flatten at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=List-Flatten. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc List::Flatten




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=List-Flatten

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/List-Flatten

* CPAN Ratings

http://cpanratings.perl.org/d/List-Flatten

* Search CPAN

http://search.cpan.org/dist/List-Flatten

COPYRIGHT & LICENSE

Top


List-Flatten documentation  | view source Contained in the List-Flatten distribution.