perldoc perlop Operator Precedence Associativity
The || operator has a higher precedence than the comma, so your code should work as you intend. What do you mean by, it doesn't work?
As I read it, that should assign the param "some_var" to the value of supplied by the hash or 10 if that is false.
- Miller
In reply to Re: What protects me from doing this stupid thing..?
by wind
in thread What protects me from doing this stupid thing..?
by Cody Pendant
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |