Perl6::PlaceholdersPerl6::Placeholders is a Perl 6 implicitly declared parameters for Perl 5. | |
Download |
Perl6::Placeholders Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Damian Conway
- Publisher web site:
- http://search.cpan.org/~dconway/
Perl6::Placeholders Tags
Perl6::Placeholders Description
Perl6::Placeholders is a Perl 6 implicitly declared parameters for Perl 5. Perl6::Placeholders is a Perl 6 implicitly declared parameters for Perl 5.SYNOPSIS use Perl6::Placeholders; my $add = { $^a + $^b }; # Create a sub that adds its two args print $add->(1,2), "n"; # Call it # Use as map, grep, and sort blocks print join ",", sort { $^y $^x } 1..10; print join "n", map { $^value**2 } 1..10; print join "n", map { $data{$_-1}.$^value**2 } 1..10; print join "n", grep { $data{$^value} } 1..10; my $div = { $^x / $^y }; # Create a HOF that divides its two args print $div->(1,2), "n"; # Do a divisionRequirements:· Perl Requirements: · Perl
Perl6::Placeholders Related Software