Update: I ended up using anonymous subroutines instead, since all CheckDate does is run ParseDate(). I simply put that in the anonymous sub, and it runs fine.my $day = "\nEnter the day (MM/DD/YY):" , -require=>{ "Must be in the format (two digits per value) of MM/DD +/YY" => CheckDate(??what_here???) }; }
-- Burvil
In reply to Passing entered value into sub for IO::Prompt by bowei_99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |