A fair guess is that you don't need anything there. Either the entered string will be passed to CheckDate or it is in $_ when CheckDate is called.
However you probably need to use \&CheckDate rather than CheckDate().
Update: the record.pl example confirms that the entered string is passed in $_. Note that, apart from the comment at the start of the sample code, the record.pl and require.pl examples are identical.
In reply to Re: Passing entered value into sub for IO::Prompt
by GrandFather
in thread Passing entered value into sub for IO::Prompt
by bowei_99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |