Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 chilling in the Monastery: (7)
As of 2014-07-28 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls