D
Derek Fountain
I've just inherited a rather horrible bit of code which I'm making run
with use strict. (Yes, it's that bad.) It contains this:
if ( ( $e > ( $rt + $ett ) )
&& ( $rt ne "" )
&& ( ${kill} == $TRUE ) )
{
where $kill is a local (my) variable. This produces this:
"Ambiguous use of ${kill} resolved to $kill at ..."
If I remove the {} from around the kill (which are unnecessary anyway)
then the problem goes away. I've never seen that and it puzzles me.
What's it trying to tell me? The function contains a varible called
$killed is that makes a difference...
with use strict. (Yes, it's that bad.) It contains this:
if ( ( $e > ( $rt + $ett ) )
&& ( $rt ne "" )
&& ( ${kill} == $TRUE ) )
{
where $kill is a local (my) variable. This produces this:
"Ambiguous use of ${kill} resolved to $kill at ..."
If I remove the {} from around the kill (which are unnecessary anyway)
then the problem goes away. I've never seen that and it puzzles me.
What's it trying to tell me? The function contains a varible called
$killed is that makes a difference...