just want apply some static type check such as int, I found 'use integer' is global and not flexible ,/^\d+$/ validation is wordy.
such as $a attribute: int
In reply to way of declare an integer variable instead use /^\d+$/ by vincentaxhe