DESCRIPTIONmy @arr = (1..10); use Acme::BottomsUp; @arr # first, start w/ numbers grep { $_ % 2 } # then get the odd ones map { $_**3 } # then cube each one join ":", # and glue together print # lastly, display result ; print "ok"; no Acme::BottomsUp;
my @arr = (1..10); print # lastly, display result join ":", # and glue together map { $_**3 } # then cube each one grep { $_ % 2 } # then get the odd ones @arr # first, start with numbers ;
package Acme::BottomsUp; use warnings; use strict; our $VERSION = '0.01'; use Filter::Simple; use PPI; FILTER { my $doc = PPI::Document->new(\$_); $_ = join '', map { my $s = $_->content; $s =~ s/;\s*$//s; join("\n", reverse split "\n", $s ) . "\n;" } @{ $doc->find('PPI::Statement') }; }; 1;
Considered (Marza): Split off the "offensive" talk to it's own thread or delete the posts as they have nothing to do with the topic
Unconsidered (holli): enough keep votes (Keep: 13, Edit: 4, Reap: 1)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RFC: Acme::BottomsUp
by eyepopslikeamosquito (Archbishop) on Aug 14, 2006 at 21:21 UTC | |
by SadPenguin (Novice) on Aug 17, 2006 at 02:45 UTC | |
|
Re: RFC: Acme::BottomsUp
by Fletch (Bishop) on Aug 14, 2006 at 19:58 UTC | |
by talexb (Chancellor) on Aug 16, 2006 at 19:03 UTC | |
|
Re: RFC: Acme::BottomsUp
by DrHyde (Prior) on Aug 14, 2006 at 20:06 UTC | |
|