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

    Perl6::Contexts 0.4

    Download button

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

    License / Price:

    Last Updated:

    Category:
    SWALTERS | More programs
    Perl Artistic License / FREE
    August 14th, 2007, 10:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Perl6::Contexts description

    Perl6::Contexts - array and hash variables turn into references to themselves when used in non-numeric scalar context.

    Perl6::Contexts - array and hash variables turn into references to themselves when used in non-numeric scalar context or as function arguments.

    SYNOPSIS

    my @foo = ( 1 .. 20 );
    my $foo = @foo; # same as: my $foo = @foo;
    my $foo = 0 + @foo; # unchanged - length of @foo
    $obj->some_method(10, 20, @foo); # same as: $obj->some_method(10, 20, @foo);
    some_function(10, 20, @foo); # same as: some_function(10, 20, @foo);

    Perl6::Contexts makes Perl 5 behave more like Perl 6 with regard to the array and hash variables as used as arguments to operators, method calls, and functions.

    This module doesn't add new syntax -- it merely changes the meaning of existing syntax. Using this module to make Perl 5 more like Perl 6 won't go very far towards writing Perl 5 that will run under Perl 6 but it will help you get used to some of the changes.

    To run legacy Perl 5 along side Perl 6, check out PONIE or Inline::Pugs.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    array variables | hash variables | Perl module | array | hash | variables

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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