fork download
  1. #! /usr/bin/perl
  2. # Nathaniel James Shaw
  3.  
  4. use Tk;
  5. my $mw = new MainWindow;
  6. my $label = $mw -> Label(-text=>"Hello World") -> pack();
  7. my $button = $mw -> Button(-text => "Quit",
  8. -command => sub { exit })
  9. -> pack();
  10. MainLoop;
  11.  
Runtime error #stdin #stdout #stderr 0s 17496KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Can't locate Tk.pm in @INC (you may need to install the Tk module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at prog.pl line 4.
BEGIN failed--compilation aborted at prog.pl line 4.