Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^5: How to split an integer??

by McDarren (Abbot)
on Dec 06, 2012 at 11:28 UTC ( #1007538=note: print w/replies, xml ) Need Help??

in reply to Re^4: How to split an integer??
in thread How to split an integer??

my $number = 23; my @bits = split //, $number; my $total; for my $bit (@bits) { $total += $bit; } print "Number=$number Total=$total\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007538]
[1nickt]: stevieb it's just a simple web page with a POST form. You can set the attribute so when the user's browser opens a file manager to select a file to upload, it will only show those o f the type you want to get.
[1nickt]: Question for my learned friends: is there a word meaning "CSV-like" i.e. I want to say that I accept CSV files, but the separator doesn;t have to be a comma. Or is that implicit these days?
[chacham]: dsv

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-07-22 18:47 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (340 votes). Check out past polls.