in reply to returning values
{ { # creates $weekStr my $weekStr .= qq|<td align=center width=25%>$WEEK_PD_NAME </t +d>|; } # $weekStr is out of scope. Create a new one return $weekStr; }
It is easier to catch this if you use strict;
Update: I see you do use strict. The problem is that you have a second "my" inside the block. It creates a second variable $weekStr. It has the same name, but it is another variable!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: returning values
by Anonymous Monk on Jul 25, 2003 at 05:03 UTC | |
by sauoq (Abbot) on Jul 25, 2003 at 05:32 UTC | |
by graff (Chancellor) on Jul 25, 2003 at 05:23 UTC | |
|
Re: Re: returning values
by Anonymous Monk on Jul 25, 2003 at 05:21 UTC |