[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Perl error messages



Tushar Samant wrote:
> On Tue, 6 Jul 1999, Marcel wrote:
> >time;
> >
> >by itself in a Perl programm produces (with -w) the wonderful message:
> >
> >Useless use of time in void context
> >
> >Isn't that almost poetic?
> 
> Gets the Nobel prize, if you ask me. Wonder what else could be squeezed
> out of Perl?
> 
> useless use of sin in void context?
> not enough arguments to listen?
> 
> I don't know if these are really possible...

The first one is easy:
  sin;
Although, to silence another spurious warning, you need:
  $_=0;
  sin;

I can't manage the second one in my <1 minute of trying.

-- 
	Peter Haworth	pmh@edison.ioppublishing.com
For mole problems call N. Avogadro.


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe