develooper Front page | perl.perl6.users | Postings from August 2018

Force integers in an array?

Thread Next
From:
ToddAndMargo
Date:
August 6, 2018 20:39
Subject:
Force integers in an array?
Message ID:
a0a3c402-5ed4-273d-a1f7-2151f832e509@zoho.com
Hi All,

Is there a way to force all the members of an array
to be integers and to error out is a non-integer
is written to one of its cells?


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About