Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by Fletch (Bishop)
on Dec 11, 2019 at 18:51 UTC ( [id://11109989]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found