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

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Just for fun, I decided to map out a bit of the region beyond pack's normal range. The results were... interesting.

ord pack len chr
064
11265p
976689a
11067n
10568i
996993c
5870:
3271
1097297m
10173e
10974m
11175101o
11476r
12177y
3278105
11979w
11480r
9781109a
1182p
083
084113
085
086
087117
088
089
090121
091
092
093125
094
095
6796129C
9797a
11098n
3999133'
116100t
32101
108102137l
111103o
99104c
97105141a
108106l
105107i
122108145z
101109e
32110
116111149t
104112h
114113r
111114153o
117115u
103116g
104117157h
32118
97119a
32120161
114121r
101122e
102123165f
101124e
114125r
101126169e
110127n
99128c
101129173e
0130
0131
0132177

Besides the panic: memory wrap and Can't localize through a reference, one other thing stands out: pack u78 uses a space as the delimeter. In cases where you can't quite get your code to fit into a u45 format (starting with an m), it's a viable alternative, and has actually been the shortest construction I've been able to find for more than one challenge.

The run of chr(0) from u83 - u95 is unfortunate, though. An eval'd string beginning with the null character seems to terminate immediately, without error, for whatever reason.


In reply to Re: Compression in Golf: Part I by primo
in thread Compression in Golf: Part I by eyepopslikeamosquito

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others taking refuge in the Monastery: (6)
    As of 2014-12-28 09:20 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (179 votes), past polls