diff --git a/Build.PL b/Build.PL index 681bece..c4b1014 100755 --- a/Build.PL +++ b/Build.PL @@ -13,6 +13,18 @@ my $class = Module::Build->subclass( print "Building README\n"; system "pod2markdown lib/e.pm > README.md"; } + sub ACTION_install { + my ($s) = @_; + $s->SUPER::ACTION_install; + + local @ARGV = ( + "e", + "-q", + "head1=LOGO/Verbatim", + ); + use App::Pod; + App::Pod->run; + } }, ); $class->ACTION_readme(); @@ -38,6 +50,7 @@ my $builder = $class->new( 'Mojolicious' => '0', 'YAML::XS' => '0', 'Data::Printer' => '0', + 'App::Pod' => '0.36', }, add_to_cleanup => [ 'e-*', 'MANIFEST*.bak', 'README*', 'blib/' ], meta_merge => { diff --git a/Changes b/Changes index 290dd50..1502bc9 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,11 @@ Revision history for e +================= +1.07 - 2024-05-15 +================= + +Updated logo. + ================= 1.06 - 2024-05-14 ================= diff --git a/README.md b/README.md index a5857ba..4919911 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,34 @@ # LOGO - __ __ __ - __ ______ / /__ ____ ______/ /_ ___ ____/ / - / / / / __ \/ / _ \/ __ `/ ___/ __ \/ _ \/ __ / - / /_/ / / / / / __/ /_/ (__ ) / / / __/ /_/ / - \__,_/_/ /_/_/\___/\__,_/____/_/ /_/\___/\__,_/ + ___====-_ _-====___ + _--~~~#####// ' ` \\#####~~~--_ + -~##########// ( ) \\##########~-_ + -############// |\^^/| \\############- + _~############// (O||O) \\############~_ + ~#############(( \\// ))#############~ + -###############\\ (oo) //###############- + -#################\\ / `' \ //#################- + -###################\\/ () \//###################- + _#/|##########/\######( (()) )######/\##########|\#_ + |/ |#/\#/\#/\/ \#/\##| \()/ |##/\#/ \/\#/\#/\#| \| + ` |/ V V ` V )|| |()| ||( V ' V /\ \| ' + ` ` ` ` / | |()| | \ ' '<||> ' + ( | |()| | )\ /|/ + __\ |__|()|__| /__\______/|/ + (vvv(vvvv)(vvvv)vvv)______|/ + __ __ __ + __ ______ / /__ ____ ______/ /_ ___ ____/ / + / / / / __ \/ / _ \/ __ `/ ___/ __ \/ _ \/ __ / + / /_/ / / / / / __/ /_/ (__ ) / / / __/ /_/ / + \__,_/_/ /_/_/\___/\__,_/____/_/ /_/\___/\__,_/ + # NAME -e - Unleash the power of e! +e - beastmode unleashed # SYNOPSIS -Convert a data structure to json: - - perl -Me -e 'say j { a => [ 1..3] }' - -Convert a data structure to yaml: - - perl -Me -e 'say yml { a => [ 1..3] }' - -Pretty print a data structure: - - perl -Me -e 'p { a => [ 1..3] }' - -Data dump a data structure: - - perl -Me -e 'd { a => [ 1..3] }' - -Devel::Peek dump a data structure: - - perl -Me -e 'dd { a => [ 1..3] }' - Add a trace marker: perl -Me -e 'sub f1 { trace } sub f2 { f1 } f2' @@ -68,14 +65,34 @@ Invoke the Tiny::Prof: perl -Me -e 'prof' +Convert a data structure to json: + + perl -Me -e 'say j { a => [ 1..3] }' + +Convert a data structure to yaml: + + perl -Me -e 'say yml { a => [ 1..3] }' + +Pretty print a data structure: + + perl -Me -e 'p { a => [ 1..3] }' + +Data dump a data structure: + + perl -Me -e 'd { a => [ 1..3] }' + +Devel::Peek dump a data structure: + + perl -Me -e 'dd { a => [ 1..3] }' + # DESCRIPTION This module imports many features that make one-liners and script debugging much faster. -For performance, a simple 'use e' statement -will import nearly no other libraries thereby -making its startup impact quite low. +It has been optimized for performance to not +import all features right away: +thereby making its startup cost quite low. # SUBROUTINES @@ -91,7 +108,7 @@ of this issue: ## import -These keys will become sub names in the +These keys will become function inside of the caller's namespace. # AUTHOR diff --git a/lib/e.pm b/lib/e.pm index c2b2e4b..5bc4499 100644 --- a/lib/e.pm +++ b/lib/e.pm @@ -2,12 +2,28 @@ package e; =head1 LOGO - __ __ __ - __ ______ / /__ ____ ______/ /_ ___ ____/ / - / / / / __ \/ / _ \/ __ `/ ___/ __ \/ _ \/ __ / - / /_/ / / / / / __/ /_/ (__ ) / / / __/ /_/ / - \__,_/_/ /_/_/\___/\__,_/____/_/ /_/\___/\__,_/ - + ___====-_ _-====___ + _--~~~#####// ' ` \\#####~~~--_ + -~##########// ( ) \\##########~-_ + -############// |\^^/| \\############- + _~############// (O||O) \\############~_ + ~#############(( \\// ))#############~ + -###############\\ (oo) //###############- + -#################\\ / `' \ //#################- + -###################\\/ () \//###################- + _#/|##########/\######( (()) )######/\##########|\#_ + |/ |#/\#/\#/\/ \#/\##| \()/ |##/\#/ \/\#/\#/\#| \| + ` |/ V V ` V )|| |()| ||( V ' V /\ \| ' + ` ` ` ` / | |()| | \ ' '<||> ' + ( | |()| | )\ /|/ + __\ |__|()|__| /__\______/|/ + (vvv(vvvv)(vvvv)vvv)______|/ + __ __ __ + __ ______ / /__ ____ ______/ /_ ___ ____/ / + / / / / __ \/ / _ \/ __ `/ ___/ __ \/ _ \/ __ / + / /_/ / / / / / __/ /_/ (__ ) / / / __/ /_/ / + \__,_/_/ /_/_/\___/\__,_/____/_/ /_/\___/\__,_/ + =cut use 5.006; @@ -16,34 +32,14 @@ use warnings; =head1 NAME -e - Unleash the power of e! +e - beastmode unleashed =cut -our $VERSION = '1.06'; +our $VERSION = '1.07'; =head1 SYNOPSIS -Convert a data structure to json: - - perl -Me -e 'say j { a => [ 1..3] }' - -Convert a data structure to yaml: - - perl -Me -e 'say yml { a => [ 1..3] }' - -Pretty print a data structure: - - perl -Me -e 'p { a => [ 1..3] }' - -Data dump a data structure: - - perl -Me -e 'd { a => [ 1..3] }' - -Devel::Peek dump a data structure: - - perl -Me -e 'dd { a => [ 1..3] }' - Add a trace marker: perl -Me -e 'sub f1 { trace } sub f2 { f1 } f2' @@ -80,14 +76,34 @@ Invoke the Tiny::Prof: perl -Me -e 'prof' +Convert a data structure to json: + + perl -Me -e 'say j { a => [ 1..3] }' + +Convert a data structure to yaml: + + perl -Me -e 'say yml { a => [ 1..3] }' + +Pretty print a data structure: + + perl -Me -e 'p { a => [ 1..3] }' + +Data dump a data structure: + + perl -Me -e 'd { a => [ 1..3] }' + +Devel::Peek dump a data structure: + + perl -Me -e 'dd { a => [ 1..3] }' + =head1 DESCRIPTION This module imports many features that make one-liners and script debugging much faster. -For performance, a simple 'use e' statement -will import nearly no other libraries thereby -making its startup impact quite low. +It has been optimized for performance to not +import all features right away: +thereby making its startup cost quite low. =cut @@ -122,7 +138,7 @@ sub monkey_patch { =head2 import -These keys will become sub names in the +These keys will become function inside of the caller's namespace. =cut