Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: A little win

by anneli (Pilgrim)
on Oct 19, 2011 at 07:47 UTC ( #932318=note: print w/ replies, xml ) Need Help??


in reply to Re: A little win
in thread A little win

Combine that with tye's suggestion and we're down to:

:'<,'>!perl -pe 'tr/<>//d; $_ = pack "C*", split ","'


Comment on Re^2: A little win
Download Code
Re^3: A little win
by Tux (Monsignor) on Oct 19, 2011 at 07:56 UTC

    Please read perldoc -f split, as the first argument to split is usually a regex, not a string

    :'<,'>!perl -pe 'tr/<>//d;$_=pack"C*",split/,/'

    Enjoy, Have FUN! H.Merijn

      Good point! I'll try to remember this from now on.

Re^3: A little win (!split)
by tye (Cardinal) on Oct 19, 2011 at 13:19 UTC

      ... simplicity wins again.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-07-01 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls