in reply to A little win
:'<,'>!perl -pe 'chomp; $_ =~ s/[<>]*//g; $_ = join "", map { chr $_ } + split ",", $_'
Could be written more simply and efficiently as:
:'<,'>!perl -pe 'chomp; tr/<>//d; $_ = join "", map chr, split /,/'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A little win
by anneli (Pilgrim) on Oct 19, 2011 at 07:47 UTC | |
by tye (Sage) on Oct 19, 2011 at 13:19 UTC | |
by anneli (Pilgrim) on Oct 19, 2011 at 20:44 UTC | |
by Tux (Canon) on Oct 19, 2011 at 07:56 UTC | |
by anneli (Pilgrim) on Oct 19, 2011 at 08:04 UTC |