#perl - Sun 1 Apr 2007 between 03:51 and 03:58



quinlanmy brain is freezing
sbingnert35t0r, lol... that's priceless...
quinlanif I have '\x41\x42' in a string, is there a way other than a s/// to turn that into the two char sequence \x41 and \x42 ?
unpack, nevermind
sbingnereval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); $newstr
buubotsbingner: BA
sbingnereval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); sprintf("%x", $newstr)
buubotsbingner: 0
sbingnerboo!
it worked anyways I think heh
Khisanthnot much point in testing it with double quotes ...
quinlaneval: unpack("A*", "\x41\x42");
buubotquinlan: AB
quinlaneval: unpack("A*", '\x41\x42');
buubotquinlan: \x41\x42
quinlanKhisanth: good point
sbingnereval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); unpack("A*", $newstr)
buubotsbingner: BA
SubStackGumbyBRAIN: eval: kill 11, -1
buubotGumbyBRAIN: 1
GumbyBRAINkill it with check_type = 1, but it has been copied to http://nopaste.snit.ch:8001/ or http://rafb.net/paste or http://code2.0beta.co.uk/search?hl=en&q=firefox+japanese+language+pack&btng=google+search.
And imagine finsihing your shift at brixton 1.30am.
sbingnereval: $str = '\x41\x42'; $newstr = substr($str, 1, 1) . substr($str, 0, 1); unpack("A*", $newstr)
buubotsbingner: x\
quinlanI've been working too long
not on this, but in general
jjoreWhat, finding non-s/// ways to do that?
SubStackgo on an adventure
jjoreeval: pack 'H*', '4142'
buubotjjore: AB
jjoreThe \x won't work if you go the pack route.
It can't be in your string.
quinlanI'm just going to use s/// - performance doesn't matter here
SubStackGumbyBRAIN: urban exploration
GumbyBRAINThat's the same changes somewhere in my exploration.
sbingnereval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); unpack("H*", $newstr)
buubotsbingner: 4241
quinlanit just seems klutzy for something encoded cleanly
sbingnersure it does
just had to find the right keyword ;)

Page: 1 8 15 22 29 36 43 50 57 64 71 78 

IrcArchive