pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Advertising: Credit Card Consolidation - Cheap Car Insurance - Loans - Loans
paste-bin - collaborative debugging tool View Help

Posted by schlicht on Wed 9th Apr 11:46 (modification of post by view diff)
download | new post

  1. ############ test.pl
  2. use warnings;
  3. use strict;
  4. use test;
  5.  
  6. print $foo;
  7.  
  8. ########### test.pm
  9. use warnings;
  10. use strict;
  11. use Exporter;
  12. our @ISA = qw(Exporter);
  13. our @EXPORT = qw($foo);
  14.  
  15.  
  16. our $foo = "test\n";
  17.  
  18. 1;
  19.  
  20.  
  21. ####### Meldung
  22.  
  23. Global symbol "$foo" requires explicit package name at ./test.pl line 6.
  24. Execution of ./test.pl aborted due to compilation errors.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me
: