Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

One thing I learned (although in another area of studies): It's not important to know everything, but it's important to know where too look it up or ask.

As long, as you find a solution, noone will ask from where the solution came. Although it's common and helpful for everyone to point at your sources. The important thing is that you do have a solution.

Regarding you question about floats as input: I did a lot of programming, also in perl. Although I don't really know, how to do it; I have some starting points.

printf/scanf comes to my mind - So I'd look this up, firstly.

After this, I'd most probably lookup the problem in CPAN. User input is always a source of trouble. Not to say, users are the real source of all these troubles.. They always do things, you'd never expect. Instead of entering a number, putting a cat onto the keyboard. Or entering sql-injects. or whatever.

So, to handle border cases, different localizations, security flaws, ... ..., with some luck there's a package already there.

If there's a reason to implement the thing myself - maybe, cause it's homework, or cause there isn't a module - google is your friend.

Just don't do only Copy and Paste, copy only, what you did understand.

Which is the most important: I really don't want to know, how many things are just copy'd n pasted, without any understanding at all.

Having studied Philosophy, I had to learn, most people don't know at all, what they are talking about.

There's a big advantage in programming: There are valid and well defined citerias. Either this thing works, or it doesnt.

Sadly, most software works - but works only within defined criterias.

E.g. Most microsoft software works only for a limited time - I never managed to keep (years before) Windows XP running longer than, say, 24 hours.

Obviously someone did copy and paste the malloc routine into gwbasic ( suspecting Windows has been written in basic), but didn't UNDERSTAND, that he had to copy also the free routine.

When the error showed up, cause free wasn't defined, the debug team luckily found also the fix: Just define an empty free function, and everything is ok. Especially, since the release was overdue.

And, as always, me as the user did the unexpected: Why the heck keeps someone his pc running for 24 hours???


(Quoting Bill's famous idea, 640kB should be enough for everyone.....)

Anyways, seems to me you are well on the way.

In reply to Re^3: The error says the value is uninitialized, but it works anyway by misc
in thread The error says the value is uninitialized, but it works anyway by mizducky

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (4)
    As of 2020-01-28 06:19 GMT
    Find Nodes?
      Voting Booth?