in reply to Passing entered value into sub for IO::Prompt
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Passing entered value into sub for IO::Prompt
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 |