in reply to Re^4: Checking two scalars in Test::More $expected. It works, but is it proper?
in thread Checking two scalars in Test::More $expected. It works, but is it proper?
I wonder if you're trying to teach me something and I haven't gotten it yet or my use was so out of whack your incredulous?
(3 and 4) means 4, in scalar context. It's not an array. The parentheses only group the single expression (if 3 is true, then 4) so that the precedence and associativity of any preceding operators doesn't inadvertently consume the 3.
I suppose I'm asking "What suggested to you that that syntax would do what you want?" and "What did you want to accomplish?" I don't mean this to sound like a lecture by any means. I have a deep interest in how people learn Perl, and you've done something here I've never seen before. That's fascinating to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Checking two scalars in Test::More $expected. It works, but is it proper?
by gctaylor1 (Hermit) on Mar 30, 2009 at 17:25 UTC |