Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Valid code?

by soonix (Canon)
on Mar 18, 2020 at 15:43 UTC ( #11114431=note: print w/replies, xml ) Need Help??


in reply to Valid code?

As all the others said, it is syntactically correct, even if you check only the part that is between quotes.

That said, I am sad that nobody suggested basic arithmetic transformation from (reformatted for better clarity)
TO_DAYS(dateadded) - TO_DAYS(Now()) >= -$newdateadded
to
TO_DAYS(Now()) - TO_DAYS(dateadded) <= $newdateadded
of course, that is if the formula was right from the beginning. Otherwise the transformed one is as wrong as the original...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-05-27 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?