What's being thrown away?



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
.



Relevant Pages

  • Re: Whats being thrown away?
    ... I replaced the for loop with a while loop and it eliminated the problem. ... Mathew Snyder wrote: ... variable in a void context" error. ... push @days, $day; ...
    (perl.beginners)
  • Re: Memory Frage
    ... Peak Private Bytes: 232K ... extrn _WriteConsoleA@20: PROC ... push STD_OUTPUT_HANDLE ...
    (microsoft.public.de.vc)
  • RE: save and retrieve a text file from a command button
    ... push a command button ... private mWordApp as Object ... private function GetWord() as boolean ...
    (microsoft.public.access.formscoding)
  • Help, need pictures of Word/SPS/WSS integration
    ... I'm trying to push the use of Word 2003 and Windows Sharepoint Services ... small or next to useless, are there any kind soles out there with a setup ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Heated grips installation: opinions?
    ... Don't buy Oxford ones, the controllers are useless ... but the newer push button type are ok IME ...
    (uk.rec.motorcycles)