I bet it's harder to formulate a question that's less broad than writing the entire script from scratch. There's no "general format for accessing a weather web service". Nor to store that information in an object.

First, you need to define for yourself what kind of information you want to display. Current temperature is your data, but do you just want to display a number? (In that case, no graphic is needed). A graph with the temperature of the past X days? Something else? Furthermore, where is your data coming from? An HTML document? Some other web service (since you mention SOAP::Lite)? I know weather.com has HTML documents with weather information. I would use LWP::Simple, or lynx to retrieve the information. As for the object, well, if all you care about is a temperature, I wouldn't bother with an object. A scalar will do fine.

This script will be installed on a web server that I don't have permission to install new modules on
Reaaaaaaaaaaaaaaaaaaaaaaaaaaaally? And you can install a program? How does whatever method you use to install a program know whether what you are installing is a program and not a module? What about a file that can be used both as a program and a module? If you install that, does the web server disappear in a time-space singularity?

Abigail


In reply to Re: Weather Script by Abigail-II
in thread Weather Script by PhosphoricX

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.