Re: defined on hash value does not work in my code :(



I am such a banana!

I was adding a \n to the end of the sprintf statement:-

my $next = sprintf("%0.2d\n", ($hours + 1)) unless
$hours eq "23";

removing the \n fixed the problem.

Thanks for you help anyway.

.



Relevant Pages

  • Re: Totally lost - please help
    ... But in the code that I saw, some output function were used (disp, ... sprintf). ... Try removing them. ...
    (comp.soft-sys.matlab)
  • Re: Totally lost - please help
    ... But in the code that I saw, some output function were used (disp, ... sprintf). ... Try removing them. ...
    (comp.soft-sys.matlab)