print int ($num / 100); or print substr($num,0,1); or if ($num=~m/(.)/) {print $1}
In reply to Re: How to extract the first elemnet from an integer type value ???
by vi_srikanth
in thread How to extract the first elemnet from an integer type value ???
by sanjay nayak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |