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

[FWP] Re: [Silly Fun WP] Perl error messages



On Fri, 9 Jul 1999, Peter Haworth wrote:
> 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?
> Although, to silence another spurious warning, you need:
>   $_=0;
>   sin;
> 
> I can't manage the second one in my <1 minute of trying.


I thought the way to do this would be to hit the perl executable with
"string" and get it too cough up all its error messages and then
select. There are some gems in there, but alas, I can't even think how
to trigger my favourite one! ("has no overloaded magic")

I have selected likely looking error messages from the perl
executable. The SFWP list must come up with a funny way of triggering each
of the following.... 

======================================================================
Unbalanced scopes: %ld more ENTERs than LEAVEs
Unbalanced saves: %ld more saves than restores
Unbalanced context: %ld more PUSHes than POPs
Scalars leaked: %ld
 PHOOEY 
Too late for "-T" option
Had to create %s unexpectedly
right argument has no overloaded magic
has no overloaded magic
%s found where operator expected
%_ has too many errors.
Not enough arguments for %s
Too many arguments for %s
%s never introduced
internal urp in regexp at /%s/
Can't call method "%s" on unblessed reference
Can't upgrade that kind of scalar
Can't coerce %s to number in %s
Bizarre copy of %s in %s
Bizarre copy of %s
Don't know how to handle magic of type '%c'
do_study: out of memory
Runaway format
panic: bad gimme: %d
panic: die %s
panic: last
...caught
Warning: something's wrong
...propagated
Unquoted string "%s" may clash with future reserved word
Insecure dependency in %s%s
"my" variable %s can't be in a package
 during global destruction.
======================================================================


John Carter                    EMail: ece@dwaf-hri.pwv.gov.za
Telephone : 27-12-808-0374x194 Fax:- 27-12-808-0338
<http://www.geocities.com/SoHo/Cafe/5947> or <http://iwqs.pwv.gov.za>

If my cats ever find out that I'm ham loosely wrapped in clothes, 
I'm in deep trouble.



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