>>>>> Jürgen Exner <> writes:
>>>>> Ivan Shmakov <> wrote:
BTW, the From: of the article I'm replying to contains unencoded
(as per RFC 2047) non-ASCII data, which is explicitly prohibited
by the recent revision of the Netnews article format (RFC 5536,
section 2.2.)
The interoperability is thus non-warranted.
(In particular, I'm planning to work on a "NNTP server"
implementation next year, and it's likely that it will reject
messages with non-ASCII headers outright.)
>> Is there a simple way to check if a value is numeric in Perl?
> At some time this Question was Asked Frequently. Please see "perldoc
> -q number":
> "How do I determine whether a scalar is a
> number/whole/integer/float?"
ACK, thanks. It mentions looks_like_number, too, but also
POSIX::strtod, POSIX::strtol (which are somewhat non-portable,
AIUI); and pure-Perl String::Scanf and a solution using "given",
both based on Perl regular expressions, which I'd like to avoid.
(JFTR: it's also at [1].)
[1]
http://perldoc.perl.org/perlfaq4.html
--
FSF associate member #7257
http://sf-day.org/