- or download this
in file FOO/Bar/Baz.pm
...
# something interesting
}
- or download this
--- in the new module FOO/Bar.pm
...
--- in the script
(remove the login function and proceed as normal)
- or download this
--- in FOO/Bar/Baz.pm
...
FOO::Bar->set_callback('login', \&login);