Hmmm ... can you do that in this case? Data::FormValidator::Constraints::Upload *requires* File::MMagic within the valid_file_format method -- so there's nothing in the symbol table you can manipulate beforehand.
In this particular case, I think a subclass is the way to go - derive from Data::FormValidator::Constraints::Upload and just override the valid_file_format method.
In reply to Re^2: Changing a method call in a CPAN module
by derby
in thread Changing a method call in a CPAN module
by tirwhan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |