Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl Number range lookup question

by jwkrahn (Monsignor)
on Jun 18, 2012 at 02:52 UTC ( #976723=note: print w/replies, xml ) Need Help??


in reply to Perl Number range lookup question

my $x = 40; print int( ( $x % 50 ) / 10 );

Replies are listed 'Best First'.
Re^2: Perl Number range lookup question
by jamesbutler (Initiate) on Jun 18, 2012 at 04:05 UTC
    ./bow Many thanks :-D
Re^2: Perl Number range lookup question
by sauoq (Abbot) on Jun 18, 2012 at 10:30 UTC

    This exactly was the first thing I wrote, but I decided I'd not do it that way because "tiers" are usually things that get changed sooner or later and I thought the OP code might just be a contrived example.

    -sauoq
    "My two cents aren't worth a dime.";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976723]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2016-12-08 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (135 votes). Check out past polls.