Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    List::Tuples 0.03

    Download button

    No screenshots available
    Downloads: 305  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Khemir Nadim | More programs
    Perl Artistic License / FREE
    September 11th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    List::Tuples description

    List::Tuples is a Perl module that makes tuples from lists.

    List::Tuples is a Perl module that makes tuples from lists.

    SYNOPSIS

    use List::Tuples qw(:all) ;

    my @tuples = tuples[2] => (1 .. 6) ;

    # is equivalent to:

    my @tuples =
    (
    [1, 2],
    [3, 4],
    [5, 6],
    ) ;

    #-------------------------------------------------------

    my @meshed_list = ref_mesh([1 .. 3], ['a' .. 'b'], ['*']) ;

    # is equivalent to:

    my @meshed_list = (1, 'a', '*', 2, 'b', undef, 3, undef, undef) ;

    #-------------------------------------------------------

    my @hashes = hash_tuples ['key', 'other_key'] => (1 .. 5) ;

    # is equivalent to :

    my @hashes =
    (
    {key => 1, other_key => 2},
    {key => 3, other_key => 4},
    {key => 5, other_key => undef},
    ) ;

    Requirements:

    · Perl



    Product's homepage

      


    TAGS:

    create tuples | tuples lists | Perl module | tuples | lists | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM