bowei_99 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Passing entered value into sub for IO::Prompt
by GrandFather (Saint) on May 27, 2008 at 01:47 UTC | |
by bowei_99 (Friar) on May 28, 2008 at 00:09 UTC | |
by GrandFather (Saint) on May 28, 2008 at 00:34 UTC | |
by bowei_99 (Friar) on May 28, 2008 at 01:34 UTC |