home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December (Special) / PCWorld_2005-12_Special_cd.bin / Bezpecnost / lsti / lsti.exe / framework-2.5.exe / eval.al < prev    next >
Text File  |  2005-04-27  |  520b  |  18 lines

  1. # NOTE: Derived from lib/Term/ReadLine/Zoid/ViCommand.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Term::ReadLine::Zoid::ViCommand;
  5.  
  6. #line 1095 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/eval.al)"
  7. sub eval {
  8.     my ($self, $_code) = @_;
  9.     print { $$self{OUT} } "\n";
  10.     my $_re = eval $_code;
  11.     print { $$self{OUT} } ($@ ? $@ : "$_re\n");
  12.     $$self{_buffer} = 0;
  13.     return 1;
  14. }
  15.  
  16. # end of Term::ReadLine::Zoid::ViCommand::eval
  17. 1;
  18.