#!/usr/bin/perl -lw #!/Once/upon/a/time $_=qq~http://wall.org/\~larry/natural.html~; require(HTTP::Tiny);$_=HTTP::Tiny->new->get( $_);$_=$_->{content};$a=0;for(/<H3/g){push@_ ,++$a}use List::Util qw/shuffle/;@_=shuffle( @_);$a=pop@_;@_=split/<H3>/;($_=$_[$a])=~s/< [^>]+>//xgx;system('clear');$_=~s/^([^\n]+)/ \033\[1m$1\033\[0m/x;$a=$a**$a/$a**$a;print; __END__ And they lived happily ever after.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Natural Language Principles in Perl (one-liner)
by usemodperl (Beadle) on Jun 21, 2018 at 08:41 UTC | |
|
Re: Natural Language Principles in Perl
by Anonymous Monk on Jun 17, 2018 at 15:30 UTC |