Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Um... there are a few things your example doesn't do nor solve, yet proves. (!?!?)

you put 90% of the the program in BEGIN{}.

You can't develop a program entirely in Begin.

As soon as you start including parts not in begin, you'll run into the fact that you didn't duplicate all of the definitions -- the 2nd being outside of the begin, so that warnings/strict don't complain.

Now you have 2 sets of defines -- those inside the begins, and those outside. You've doubled the development and maintenance.

None of the standard ways to ways suggested worked. While you may have found a workaround that works for you, that is not proving there is not a flaw in perl 5.14.x -- and that standard methods others suggest don't work, neither about 2 dozen more than I tried before coming here.

That's still fits the definition of broken usability, which still fits the definition of a bug.

The problem with simplifying all those pesky aliases and RO var, is that oft' times the problem becomes induplicable.

BTW, I have NEVER accused people of being bad at listening, I *SUCK* at communicating, ok? I know it. I'm stuck with it. I've taken courses, been to therapy, I'm defective -- unfortunately for me and the world. More times than not, I have it together enough to be understood without an interpreter, but have, on occasion, found that helpful!...

I trebly hesitate to post anything for me running up into another wall or another hard place. It isn't usually worth the effort. I figured this time, I'd tried everything except rewriting the program all inside a BEGIN statement. The use Module(util). and it's usage was the last suggestion mentioned to me on 5.10, when this was brought up -- and worked then -- it doesn't anymore.

The module suggested doesn't run on 5.14 without errors -- indicating that 5.14 has now broken it as well. Sure, it may be the modules fault, but if perl is breaking all these programs -- that is another bug -- it's not supposed to be breaking backwards compatibility without a "use feature"...

Your program is a onerous, though proven, workaround, but it also gives ample fodder to any perl-hater out there about how broken a language perl is, because having to do that to have multiple classes in the same file is broken.

But I honest still appreciate the work and effort you put into it, and have saved it... but that type of effort shouldn't be required for so little gain, nor should being required to write your code all one way.

Perl was supposed to be about the freedom to do things 20-100 different ways, and now, it's all one way, or a straight-jacket (people go crazy that way, don'thcha know?)...


In reply to Re^10: can't import using exporter by perl-diddler
in thread can't import using exporter by perl-diddler

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, 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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    marto gasps at number of blocks in the Lego millennium falcon
    [marto]: How many days till Christmas? ;)

    How do I use this? | Other CB clients
    Other Users?
    Others taking refuge in the Monastery: (7)
    As of 2017-12-18 21:11 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      What programming language do you hate the most?




















      Results (498 votes). Check out past polls.

      Notices?