On Tue, 5 Jun 2001, Gary Luther wrote:

> MESSAGES:
>
> Useless use of string in void context at /common/bin/whaduname.AA line 56.
> Useless use of string in void context at /common/bin/whaduname.AA line 60.
>
> The lines and supporting evidence:
>
> 33 $cdate='/common/lib/cdatetest';
>
> 35 $cnum='/common/lib/cnumtest';
>
>
>  56    open(CD, ">$cdate") || "Can't open $cdate: $!";
>  60    open(CN, ">$cnum") || "Can't open $cnum: $!";

You need to do something with the "Can't open <blah> " strings, e.g.
insert 'print' or 'die' before them.  You aren't putting the strings to
any use, therefore they are 'useless'.  Does that make sense?

Best wishes,

Rachel Coleman


Reply via email to