Folks-

I'm having my Friday moment a little early this week...

Needing to learn about the LWP::Simple module, I wanted to cobble up a quick test program. What to do... what to do... then, I began to wonder... What is the lowest PM node_id I have access to?

use strict; $|++; use LWP::Simple qw($ua get); $ua->proxy('http', 'http://myproxy'); # Skip nodes 0 and 17... # for my $id (1..16, 17..50) { Ooops... for my $id (1..16, 18..50) { my $url = "http://www.perlmonks.org/?node_id=$id"; print "$url: "; my $content=get($url); if ( ($content) && ($content!~/You don.t have access to that node. +/) ) { print "Good\n"; last } else { print"\n" }; sleep 2; }
I put the sleep in there so I didn't overload the server too much.

node_id=0: Ok, this is the Monastery gates, that doesn't count. Hmmm, doesn't seem to work as a reference though - [id://]
node_id=17: is goofed up somehow, check it out [no such node, ID 17]
node_id=23: seems to be the winner Everything 2 Idea List

Now my paranoia kicks in. What do nodes 1..16,18..22 contain? What are the gods hiding? Are they talking about me...

-Craig


In reply to How Low Can I Go? by cmv

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!
  • 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:
    & &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.