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 ( [id://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.

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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found