Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570545]
help
Chatterbox?
[Lady_Aleena]: james28909, I put it at the top of my scratchpad, if you want to look at it.
[Lady_Aleena]: I remember being pretty proud of that little sub when I wrote it.
[james28909]: oh xD
[james28909]: i see the predicament here.
[james28909]: maybe rename it to 'query'

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-05-24 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?