Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 );


Comment on Re: Perl Number range lookup question
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-12-28 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls