Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Comment on

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

I'm sorry - English is not my first language, nor my second or third, so I'm not necessarily familiar with all the colloquialisms. I know of the phrase "flogging a dead horse", but I'm unaware of the meaning of "beating a dead cow". Is this cockney slang for some sexual activity? It is maybe a bit telling, but my knowledge of the English language is mostly restricted to phrases that occur in polite conversation. I'm happy that you try to contribute back by helping me widen my vocabulary, but maybe you can explain in simple words what this phrase is supposed to express.

As for the parts more closely related to Perl - it might not have been an explicit lesson by either merlyn or brian d foy, but neither Perl nor the authors of Perl modules are restricted to using only words in your dictionary. This fact might have come to your attention already as Perl let you use variable names such as $Filename2Fields instead of $File_name_to_fields. If the author of a module you use documents the name of a function, it is conventional to use that documented name to access that function instead of another name you'd have chosen instead. Perl supports you to modify your code to use the cromulent function names chosen by others, as it advises you when you use a different name for a function that the module author did not name in the same way.

Of course, you are free to lament these literary disagreements and claim them as "bugs". You can of course write copy-edited Perl-code, but to expect that Perl and Perl authors adhere to your seemingly limited dictionary strikes me as a quite surprising stance, especially as there are quite a lot of Perl module authors who do not share your upbringing nor a copy of your dictionary. If you think that your vocabulary is the be-all end-all epitome of literacy, I recommend you start an initiative to convince all Perl programmers to only use words you approve of in function names and variable names. Until then though, I recommend that you start reading and understanding the error messages Perl so helpfully tries to provide you with, instead of claiming bugs in Perl. Especially reading the documentation of modules, and if in doubt, reading the source code of modules usually brings great enlightenmend as towards the vocabulary that other module authors use and offer to you to use as well.

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

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
    [Corion]: Meh. I have a very simple mechanism to scrape+track prices, and even to send me mail if something changes (via cron), but SQLite doesn't support window functions, so my simple SQL to determine a price change won't work :-( Maybe I should store the DB ...
    [Corion]: ... in Pg, but that would mean that I'd have to deal with credentials and stuff :)
    [Corion]: In fact, the whole thing is just four simple programs, one App::scrape, another being DBIx::RunSQL, and one some glue to convert a JSON object into an SQL INSERT statement (+DBI connect/execute), so it would be an incredibly simple solution...
    [Corion]: ... but that simplicity falls down due to SQLite letting me down and me being too lazy to move to a real DB. Maybe DBD::CSV can handle window functions...
    [hippo]: Pg has the "trust" mechanism if you don't fancy using credentials for a trivial db.
    [Corion]: hippo: Oooh, that sounds quite nice - let me read the documentation on that :)
    [hippo]: https://www. docs/current/ static/auth- methods.html#AUTH- TRUST
    [erix]: or compile & run an instance as yourself (not user 'postgres')

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (10)
    As of 2018-02-23 15:08 GMT
    Find Nodes?
      Voting Booth?
      When it is dark outside I am happiest to see ...

      Results (302 votes). Check out past polls.