Acme::BottomsUp - Write individual statements backwards


Acme-BottomsUp documentation  | view source Contained in the Acme-BottomsUp distribution.

Index


NAME

Top

Acme::BottomsUp - Write individual statements backwards

VERSION

Top

Version 0.02

SYNOPSIS

Top

	my @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;

DESCRIPTION

Top

This module allows you to write multi-line perl statements in reverse order so that it "reads better". For example, normally one would write the code from the SYNOPSIS as:

	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
	;

PREREQUISITES

Top

SEE ALSO

Top

http://perlmonks.org/?node_id=567298 - Original location for RFC

AUTHOR

Top

David Westbrook (davidrw), <dwestbrook at gmail.com>

BUGS

Top

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

I'm also available by email or via '/msg davidrw' on http://perlmonks.org.

SUPPORT

Top

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

    perldoc Acme::BottomsUp

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Acme-BottomsUp

* CPAN Ratings

http://cpanratings.perl.org/d/Acme-BottomsUp

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-BottomsUp

* Search CPAN

http://search.cpan.org/dist/Acme-BottomsUp

COPYRIGHT & LICENSE

Top


Acme-BottomsUp documentation  | view source Contained in the Acme-BottomsUp distribution.