Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by b10m (Vicar)
on Aug 31, 2006 at 08:58 UTC ( #570543=note: print w/replies, xml ) Need Help??


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

print substr($num, 0, 1);

See substr

--
b10m

All code is usually tested, but rarely trusted.
  • Comment on Re: How to extract the first elemnet from an integer type value ???
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-12-06 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?