Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)

by hippo (Bishop)
on Mar 22, 2021 at 12:03 UTC ( [id://11130111]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)
in thread How to import "global" variables into sub-scripts from main script?

I refuse to become part of the cult of strict

I note from your OP that you also refuse to become part of the cult of placeholders.


🦛

  • Comment on Re^3: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)

Replies are listed 'Best First'.
Re^4: How to import "global" variables into sub-scripts from main script? (Cargo culting red flags)
by Polyglot (Chaplain) on Mar 22, 2021 at 12:18 UTC

    I don't know what placeholders are outside of math and linguistics--so I don't know what you may have found to critique. I guess it would be difficult to join a cult one has never encountered. Again, I'm not a trained programmer. Everything I know about perl I've learned in a hands-on, self-taught manner. I know I'm not very good. But better to split the wood with the claws of the hammer than to sit idly by, sighing for want of a maul.

    Blessings,

    ~Polyglot~

        Ah. Well, I don't think I could improve what I have much. What you don't see is that these two separate subroutines are called by separate AJAX functions under differing conditions, and that they each have a non-overlapping functionality along with what certainly does appear to be redundant at first glance. Note the comments given to each function, and note that they differ in terms of the password handling as well. While the actual DB query is essentially the same, updating a password, it is vetted in two distinct ways: one is an administrative reset of another member's password, while the other is the user changing his or her own password. Neither of these functions will happen more than rarely.

        Blessings,

        ~Polyglot~

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found