Hello,
First off, i just want to let everyone know i cannot install modules, for too man reasons. Basically, my boss wants me to grab data from about 10 different websties, and compile it. The address is similar to: http://www-mat.nextel.com/cgi-bin/stats-cgi/hist.cgi?netid=2623-null-null&report_type=Daily+Totals&market=PHL, and when put into a browser, the output looks like:
null Sector null Blocking + IC_Call Handoff Intra BSC HO Inter BSC HO + Loss Of Total Traffic (Usage) in Erlangs Queue Rate +DCCH Setup Failures Performance Performance T +ransmission Drop Date DCCH PCH I.C. Disp Total Disp I.C. OvrH +d Blkg Blkg L.O.R. WeakUL Drops Rate Drops Rate D +rops Rate Events today 0.3 0.267 4.9 4.8 10.0 0.00% 0.00% 3.5 +% 0.00% 0.00% 0.00% 5.77% 0 0.00% 0 0.00% + 3 0.64% 3 21Nov00 1.5 2.291 37.6 29.4 68.5 0.03% 0.15% 2.2 +% 0.00% 0.00% 0.10% 7.30% 2 0.10% 0 0.00% + 15 0.46% 17 20Nov00 4.5 2.074 36.5 23.7 64.7 0.09% 0.44% 7.0 +% 0.00% 0.00% 1.89% 4.43% 2 0.10% 0 0.00% + 19 0.56% 21 19Nov00 1.2 1.123 25.2 9.3 35.7 0.00% 0.00% 3.3 +% 0.00% 0.00% 0.00% 3.79% 2 0.15% 0 0.00% + 15 0.63% 17 18Nov00 0.2 0.218 5.1 1.5 6.8 0.00% 0.00% 2.9 +% 0.00% 0.00% 0.00% 15.71% 5 0.32% 0 0.00% + 0 0.00% 5 17Nov00 0.0 0.012 0.3 0.1 0.5 0.00% 0.00% 4.8 +% 0.00% 0.00% 0.00% 2.44% 5 0.23% 0 0.00% + 0 0.00% 5 16Nov00 1.5 2.220 37.5 27.3 66.3 0.15% 1.61% 2.3 +% 0.00% 0.54% 1.38% 2.85% 10 0.48% 0 0.00% + 23 0.68% 33 15Nov00 1.6 2.283 36.6 25.6 63.8 0.03% 0.56% 2.5 +% 0.04% 0.08% 1.80% 8.29% 4 0.20% 0 0.00% + 13 0.40% 17
only a lot more. Basically, the perl script gets the necessary parameters, and imputs them into the url address. I am using part of a script from fastolfe's post. Re: Grabbing a web page without LWP or the like. Here is the code as it is in my script (only posting relevant code)
my $web = new IO::Socket::INET("http://www-mat.nextel.com/cgi-bin/stat +s-cgi/hist.cgi?netid=$information[3]-null-null&report_type=Daily+Tota +ls&market=PHL:80") or die "Couldn't connect: $@";

where $information[3] is a 4 or 5 digit number which tells the hist.cgi what data to display. There are 2 problems which I can see.

1: the $information[3] doesnt register, it just comes up blank.
2: I get the die message everytime, and when i take the exact address that the script produces, and paste it into a browser, it works fine.

Again, i woul dlike to install LWP::Simple, and the other modules needed, but ive tried for hours, and 5 or 6 different people have helped me, yet still no luck.
Thanks In Advance

Dipul

In reply to grabbing webpage data w/o additional modules by ImpalaSS

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.