in reply to Re: 0+$1 for numeric, why?
in thread 0+$1 for numeric, why?

Here's the line from Format.pm...
$dyHeight = $self->{_size} * 20;
But I am not sure I fully understand your comment....?

Replies are listed 'Best First'.
Re: Re: Re: 0+$1 for numeric, why?
by chipmunk (Parson) on Dec 02, 2000 at 00:15 UTC
    If you look back at the warning message you got, you see that it mentions "_size" as the string that is not numeric. Your code snippet will only set $1 to a string of digits, not to the string "_size", right? So, I don't think your code snippet is the problem.

    Regarding the line above: somehow, $self->{_size} is getting set to the string "_size", instead of to a number.

    Can you post more of the code from Spreadsheet/Format.pm? What method is line 225 part of? We'll just have to keep poking around the code until we figure this out.