I find this turn of events absolutely astounding, and I
only have one thing to add.
It may not display well, but the two escape sequences can
be replaced by the actual characters. This brings it back
down to 70. Here is the paste from my system, this may not
work on yours:
sub o{
($c,*w,$")=@_;sub t{eval"y/\Q@$c\E/-ÿ/";$_}sort{t($_=$a)cmp t$_=$b}@w
}
UPDATE
It definitely won't work on yours. It seems the \0 was
trimmed from the output. To get what you need go back to
chipmunk's post, download his code to a file, then run
this:
perl -pi.bak -e 's/\\(\d+)/chr(oct($1))/e' filename
(Use " instead of ' on Windows.) The resulting file will
have the key subroutine reduced to 70 characters, and will
still run.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|