Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to extract the first elemnet from an integer type value ???

by borisz (Canon)
on Aug 31, 2006 at 09:07 UTC ( #570545=note: print w/replies, xml ) Need Help??


in reply to How to extract the first elemnet from an integer type value ???

or use a regex
print $num =~ /^(.)/;
Boris
  • Comment on Re: How to extract the first elemnet from an integer type value ???
  • Download Code