in reply to Checking whether a value is between two limits: Useless use of private variable in void context

You've got => which is a fancy comma not the greater than or equals operator >= (see perlop). This means the second half of your if check is ... ( $value, $lower_limit ) which is why you're getting that warning.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: Checking whether a value is between two limits: Useless use of private variable in void context
  • Select or Download Code