Change 16713 by jhi@alpha on 2002/05/20 14:46:15
A bit of self-promotion from David Wheeler <[EMAIL PROTECTED]> :-)
Affected files ...
..... //depot/perl/pod/perlfaq4.pod#73 edit
Differences ...
==== //depot/perl/pod/perlfaq4.pod#73 (text) ====
Index: perl/pod/perlfaq4.pod
--- perl/pod/perlfaq4.pod#72~16653~ Fri May 17 05:18:54 2002
+++ perl/pod/perlfaq4.pod Mon May 20 07:46:15 2002
@@ -1920,6 +1920,10 @@
if (/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/)
{ print "a C float\n" }
+Or you could check out the L<Data::Types|Data::Types> module on the CPAN,
+which exports functions that validate data types using these and other regular
+expressions.
+
If you're on a POSIX system, Perl's supports the C<POSIX::strtod>
function. Its semantics are somewhat cumbersome, so here's a C<getnum>
wrapper function for more convenient access. This function takes
@@ -1943,9 +1947,9 @@
sub is_numeric { defined getnum($_[0]) }
-Or you could check out the String::Scanf module on CPAN instead. The
-POSIX module (part of the standard Perl distribution) provides the
-C<strtod> and C<strtol> for converting strings to double and longs,
+Or you could check out the L<String::Scanf|String::Scanf> module on the CPAN
+instead. The POSIX module (part of the standard Perl distribution) provides
+the C<strtod> and C<strtol> for converting strings to double and longs,
respectively.
=head2 How do I keep persistent data across program calls?
End of Patch.