Just a few minutes ago I entered the monastery and was shocked that someone had moved all these lovely nodlets (except the slow chatterbox which everyone should deactivate)of my screen. The evildoer was found easy: a url that is way to long in this
evil node.
It's not that my 19" monitor wouldn't be big enough *chough*
but it's said that there are people w/ 17" or even smaller displays.
I saw such problems earlier at
FM and they solved it by cutting the middle the URL so it wouldn't be longer than say 50 chars.
$_ = "http://this.is.a.very.long.url.and.this.is/very/bad?after=I&dont
+=like&long&urls=and&they=look&really=ugly";
print "before: $_\n";
s/(.{30}).*(.{20})/$1 ... $2/;
print "after: $_\n";
==>>
before: http://this.is.a.very.long.url.and.this.is/very/bad?after=I&do
+nt=like&long&urls=and&they=look&really=ugly
after: http://this.is.a.very.long.url ... hey=look&really=ugly
--
package Lizard::King;
sub can { do { 'anything'} };
TomK32 -
just a geek trying to change the world
In reply to long URLs
by TomK32
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.