in reply to how do I use Win32::TieRegistry in a multi-platform program?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: how do I use Win32::TieRegistry in a multi-platform program?
by stevieb (Canon) on Mar 01, 2018 at 22:39 UTC

    I rarely respond to your posts, but I request proof of this statement:

    Having encountered a lot of this sort of source-code before

    Please show me the code, the CPAN modules, your repositories that show this. It frustrates me, as someone who actually HAS "encountered" (read: wrote myself, and helped with others). Proof: Test::BrewBuild. In this case, not only did I write the software, I wrote the Windows software the software uses.

    Your drivel will be just that; drivel, until you show some code. Let's see where your expertise in this matter comes from. If you can't prove it, please, refrain from posting. It's no different than asking someone how to gut and rebuild my house by someone who can't provide any proof that they've gone as far as to pick up even a paintbrush (yes, I've built/flipped homes too, and yes, I can prove it).

    Regards,

    -stevieb

      I don't know how many monks already asked SD to prove his alleged expertise (20? 50? ), but I did a reproducible research of his code contributions in the last 1000 posts since 2014.

      So I'm afraid you are going to be disappointed, too.

      update

      Revisiting the node I just randomly (!) picked one of his posts

      Please note the // for commenting and the variables inside qw//

      my $found = 1; my $cursor = $hashref; for my $key ( qw/$key1 $key2 $key3/ ) { if (exists( $cursor->{$key} ) { $cursor = $cursor->{$key}; } else { $found = 0; last; // NOT FOUND - QUIT LOOKING NOW } } . . . if ($found) { // $cursor REFERS TO THE ELEMENT THAT WAS FOUND ... }
      This "code" looks a lot like from a retired PHP programmer who knows Perl only from cut and pasting.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery

      Please show me the code

      Hacka', please. :P

      It's no different than asking someone how to gut and rebuild my house by someone who can't provide any proof that they've gone as far as to pick up even a paintbrush (yes, I've built/flipped homes too, and yes, I can prove it).

      me too!

      gingerbread poptarts, all day son

Re^2: how do I use Win32::TieRegistry in a multi-platform program?
by perltux (Monk) on Mar 01, 2018 at 22:04 UTC
    I can see your point and it definitely makes sense in many cases to do as you suggest, but in this case less than 5% of the total code is platform specific and the only BEGIN and Registry sections of the whole program are the ones I quoted above so IMHO separating this out is more hassle than gain.

    BTW, this is code for a personal hobby project, not a program written as part of a job.
    (yes I write Perl code for fun, not for a living ;) )