Re: What's being thrown away?
- From: theillien@xxxxxxxxx (Mathew Snyder)
- Date: Sun, 31 Dec 2006 06:18:55 -0500
Nevermind. I replaced the for loop with a while loop and it eliminated the problem.
Mathew
Mathew Snyder wrote:
In the following snippet of code I'm getting the "useless use of a private.
variable in a void context" error. It is at line 64 which is the closing brace
for the for loop.
for ($count; $count < 7; $count++) {
if ($day == '01') {
if (exists($months31{$month})){
$day = 31;
push @days, $day;
$day--;
}elsif (exists($months30{$month})){
$day = 30;
push @days, $day;
$day--;
}else{
$day = 28;
push @days, $day;
$day--;
}
}else{
push @days, $day;
$day--;
}
} # Line 64
All variables are declared elsewhere.
The only thing I can think is happening is that a return value is being expected
but isn't being provided. I can provide the entire script if needed for context.
Mathew
- References:
- What's being thrown away?
- From: Mathew Snyder
- What's being thrown away?
- Prev by Date: What's being thrown away?
- Next by Date: Re: Is item in array
- Previous by thread: What's being thrown away?
- Next by thread: Re: What's being thrown away?
- Index(es):
Relevant Pages
|
|