Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^7: SQL::Abstract 'between' clause (about done)

by jethro (Monsignor)
on Nov 22, 2011 at 19:48 UTC ( #939527=note: print w/replies, xml ) Need Help??

in reply to Re^6: SQL::Abstract 'between' clause (about done)
in thread SQL::Abstract 'between' clause (about done)

I'm not talking about your script. I just answered your implied question "I don't see where I can use this functionality with the two choices you mentioned to pick from" in your last post.

After looking at your script I see that the problem is that when you call process("DATE1=20111111:20111112"), your script will execute the first 'unless' (which will put a scalar value into $where{DATE1}) and then execute the last 'if' block (which will try to put a reference into $where{DATE1}).

The problem is evident from your script output (it prints "normal value: 20111111:20111112" and it shouldn't do that, right?). If you had put a few Data::Dumper statements into the subroutine it would have been even more conspicuous.

So evidently Anonymous Monk was right

  • Comment on Re^7: SQL::Abstract 'between' clause (about done)

Replies are listed 'Best First'.
Re^8: SQL::Abstract 'between' clause (about done)
by Anonymous Monk on Nov 23, 2011 at 10:41 UTC
    Thank you so much, this clear explanation helped me a lot. Thank you!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939527]
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: I hope you had a good weekend!
[Discipulus]: good morning again monks!
[choroba]: Good morning!
[Corion]: I have a rough plan to release an ImageNet classifier in Perl (well, using pretrained data, but still a nice toy)
Discipulus is going mad with the new win10 client.. tried mv Cortana /dev/null but no succes
[Corion]: Ouch - another pretrained set is available, using images from IMDB and Wikipedia. So I expect interesting results for non-PR images where people are pictured that are not made up

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2017-09-25 08:29 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (277 votes). Check out past polls.