]> git.evergreen-ils.org Git - Evergreen.git/commit
Make GetOpts::Long and Cronscript get along
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Mar 2010 00:04:02 +0000 (00:04 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Mar 2010 00:04:02 +0000 (00:04 +0000)
commitac90389c11f51778fa6de1574568db8cf7532735
tree2c7eda7c831b13228601c08eef079b8b539a8001
parent8965c76d859de32eff7e41b0e6a07faedd4e407d
Make GetOpts::Long and Cronscript get along

So the old Cronscript approach was to have variables declared with
the default values assigned and pass a hash of keys => var_ref, where
the var_ref's pointed to the variables.  This didn't work because of
Cronscript trying to build the clean hashes and incorporate structure
into the object.

So instead now we rely on the MyGetOptions return
value (hashref or hash), essentially the opts_clean hash.  And we
populate the local variables afterwards.  The default values are passed
in the hash now.  This works.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15891 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Utils/Cronscript.pm
Open-ILS/src/support-scripts/marc_stream_importer.pl