type checks
[email protected] Fri, 02 Jun 2023 07:56:11 +0000
| Newsgroups | gmane.comp.lang.perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I am not sure, is there any external module to check types in such mathematical calculation?
$ perl -le 'print ("3" + undef)'
3
$ perl -le 'print ("3" + 4)'
7
I hope the program will throw errors when the above happens.
Thanks.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/