Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: return age

by bigup401 (Pilgrim)
on Sep 07, 2020 at 16:02 UTC ( [id://11121443]=note: print w/replies, xml ) Need Help??


in reply to Re: return age
in thread return age

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: return age
by tobyink (Canon) on Sep 07, 2020 at 16:28 UTC

    Someone born in December 2000 is 19 right now, not 20.

Re^3: return age
by choroba (Cardinal) on Sep 07, 2020 at 16:28 UTC
    It depends on whether you've already had the birthday this year or not.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^3: return age
by marto (Cardinal) on Sep 07, 2020 at 16:38 UTC

    As I'm sure you are aware there are many days in a year. How many years difference between now and any given year is different from the age of a human or event, since they fall on days, not years.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121443]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found