Acme-DotDotGone

 view release on metacpan or  search on metacpan

lib/Acme/DotDotGone.pm  view on Meta::CPAN

	($_[2] = (join '', <FH>)) =~ s/$reg//sm;
	$_[2] = $1 . $_[2] if $1;

	close FH;

	($_[2], $_[3], $_[4]) = (($2) 
		? ($2 eq 'dot') 
			? sub { 
				$_[1] = $dots{toDots}($_[0]);
				$_[0], $_[1], $_[1]; 
			}
			: sub { 
				$_[1] = $dots{fromDots}($_[0]); 
				$_[1], $_[0], $_[1]; 
			}
		: ($_[2] =~ m/[a-zA-Z]/)
			? sub { 
				undef			
			}
			: sub { 
				$_[1] = $dots{fromDots}($_[0]);
				$_[1], $_[0];
			}
	)->($_[2]);

	if ($_[4]) {
		open FH, ">$0" or print "Cannot encode. '$0'\n" and exit;
		print FH "use Acme::DotDotGone;\n";
		print FH $_[4];
		close FH;
	}

	do { eval "$_[2]"; $dots{stderr}($@); } if $_[2];
}

1;

__END__

=head1 NAME

Acme::DotDotGone - dot dot gone

=head1 VERSION

Version 1.01

=cut

=head1 SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

vim worldEnding.pl

	use Acme::DotDotGone dot;

	use feature 'say';
	say 'The world is about to end';

	1;

perl worldEnding.pl

	The world is about to end

cat worldEnding.pl

	use Acme::DotDotGone;
	. .. . .. . . . . .. . .. . .. .. .. . .. .. . . .. .. .. . .. . .. . . .. .. . . . . . . .. . . . .. .. . . .. .. . .. . .. . . .. .. . .. . . . . .. .. . . . .. . .. .. .. . .. . .. . .. .. .. . . .. . . .. .. .. . .. . .. . . .. .. . . . . . . .....

perl worldEnding.pl

	The World is about to end

vim worldEnding.pl
	
	use Acme::DotDotGone panic;
	. .. . .. . . . . .. . .. . .. .. .. . .. .. . . .. .. .. . .. . .. . . .. .. . . . . . . .. . . . .. .. . . .. .. . .. . .. . . .. .. . .. . . . . .. .. . . . .. . .. .. .. . .. . .. . .. .. .. . . .. . . .. .. .. . .. . .. . . .. .. . . . . . . .....

perl worldEnding.pl

	The World is about to end

less worldEnding.pl

	use Acme::DotDotGone;

	use feature 'say';
	say 'The world is about to end';

	1

=head1 AUTHOR

Robert Acock, C<< <thisusedtobeanemail at gmail.com> >>

=head1 BUGS

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

=head1 SUPPORT

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

	perldoc Acme::DotDotGone

You can also look for information at:

=over 4

=item * RT: CPAN's request tracker (report bugs here)

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-DotDotGone>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Acme-DotDotGone>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/Acme-DotDotGone>

=item * Search CPAN

L<http://search.cpan.org/dist/Acme-DotDotGone/>

=back

=head1 ACKNOWLEDGEMENTS

=head1 LICENSE AND COPYRIGHT

Copyright 2017 Robert Acock.

This program is free software; you can redistribute it and/or modify it
under the terms of the the Artistic License (2.0). You may obtain a
copy of the full license at:

L<http://www.perlfoundation.org/artistic_license_2_0>

Any use, modification, and distribution of the Standard or Modified
Versions is governed by this Artistic License. By using, modifying or
distributing the Package, you accept this license. Do not use, modify,
or distribute the Package, if you do not accept this license.

If your Modified Version has been derived from a Modified Version made
by someone other than you, you are nevertheless required to ensure that



( run in 1.948 second using v1.01-cache-2.11-cpan-54e63673c56 )