in reply to How to extract the first elemnet from an integer type value ???
or use a regex
print $num =~ /^(.)/;
Boris
In Section
Seekers of Perl Wisdom
in reply to How to extract the first elemnet from an integer type value ???
print $num =~ /^(.)/;