Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Homework Golf (35)

by BrowserUk (Pope)
on Dec 05, 2013 at 09:56 UTC ( #1065737=note: print w/replies, xml ) Need Help??

in reply to Re^2: Homework Golf (35)
in thread Homework Golf

I (breifly) looked for a replacement for "\c_", but I was trying to xor two bareword chars together to produce chr(31). I found several pairs that worked, but then as ^ has lower precedence than x, I couldn't extend the string cos if you bracket the expression, x produces a list not a string :(. Didn't think of &~'`'. Or vstrings:( )

Also couldn't see how to ditch the unpack parens.

As neither of the strings needs escape processing (unlike "\c_"), you can switch the "s <-> 's and that works on windows also:

C:\test>perl -nlE"65^unpack'%c*',$_&~'`'x30or say" words.txt | wc -l 1279

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2021-08-01 02:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found