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

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



>On Fri, 9 Jul 1999, Peter Haworth wrote:
>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....

I don't know about funny, but...

>======================================================================
>%s found where operator expected

   #!/usr/bin/perl -w
   print "monkey" "parrot";

>Not enough arguments for %s

   #!/usr/bin/perl -w
   seek;

>Too many arguments for %s

   #!/usr/bin/perl -w
   seek(<DATA>, 0, 0, 0);

>Can't call method "%s" on unblessed reference

   #!/usr/bin/perl -w
   my ($monkey) = [42];
   $monkey->jump();

>Unquoted string "%s" may clash with future reserved word

   #!/usr/bin/perl -w
   print monkey;

--David

glasser@iname.com



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