Skip to content

Instantly share code, notes, and snippets.

@mishin
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishin/a955752a26e3c6baa3b6 to your computer and use it in GitHub Desktop.
Save mishin/a955752a26e3c6baa3b6 to your computer and use it in GitHub Desktop.
it's only for show
#This is my perl tips collection:
http://grep.cpan.me/?q=author%3A%28MIYAGAWA%7CDCONWAY%7CBDFOY%7CSZABGAB%29+shift
author:(MIYAGAWA|DCONWAY|BDFOY|SZABGAB) shift
http://eax.me/perl5-oop/
http://grep.cpan.me/?q=author%3A%28MIYAGAWA%7CDCONWAY%7CBDFOY%29+__DATA__
author:(MIYAGAWA|DCONWAY|BDFOY) __DATA__
→ milla-tutorial$ sp_ch () {(cat $1|aspell --lang=ru-yo list|aspell --lang=en list); };sp_ch lib/POD2/RU/perlretut.pod
{ (cat $1|aspell --lang=ru-yo list|aspell --lang=en list); }
sp_ch () {(cat $1|aspell --lang=ru-yo list|aspell --lang=en list); };sp_ch lib/POD2/RU/perlretut.pod
perl -M"File::Slurp qw(edit_file)" -e "edit_file { s/=item (\d+)/=item C<$1>/g } 'lib/POD2/RU/perlretut.pod' "
perl -pi.bak -e 's/=item (\d+)/=item C<$1>/g' lib/POD2/RU/perlretut.pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment