Please re-read our replies.
When you use a value in numeric context, for example by using the <= operator on it, Perl expects a number. But you are handing it something else. Perl even tells you what it saw instead, but you seem to hide that value from us.
Find out what the offending value is and then look at your code and think about how that value gets there.
Most likely, printing $PM and thinking long and hard about the difference between what you expect in $PM and what you get might give you a hint.
|