Dear perl professionals,
I have a problem in my perl code. I am trying to create progressbar which will be able to adapt its color according to specific decision i.e. if ($x<10)
$progress->configure(-colors=>[10,"green"])
else
$progress->configure(-colors=>[10,"red"])
assume progressbar is already created with @colors=(0,'green') and -colors = \@colors
I am trying to run this code but it doesn't work. I will be thankful for your help
I have a problem in my perl code. I am trying to create progressbar which will be able to adapt its color according to specific decision i.e. if ($x<10)
$progress->configure(-colors=>[10,"green"])
else
$progress->configure(-colors=>[10,"red"])
assume progressbar is already created with @colors=(0,'green') and -colors = \@colors
I am trying to run this code but it doesn't work. I will be thankful for your help