home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-23 | 1.2 KB | 22 lines | [TEXT/MPS ] |
- #!./perl
-
- # $RCSfile: eval.t,v $$Revision: 4.0.1.1 $$Date: 91/11/05 18:43:19 $
-
- print "1..16\n";
-
- eval 'print "ok 1\n";';
-
- if ($@ eq '') {print "ok 2\n";} else {print "not ok 2\n";}
-
- eval "\$foo\n = # this is a comment\n'ok 3';";
- print $foo,"\n";
-
- eval "\$foo\n = # this is a comment\n'ok 4\n';";
- print $foo;
-
- print eval '
- $foo ='; # this tests for a call through yyerror()
- if ($@ =~ /Line 2/) {print "ok 5\n";} else {print "not ok 5\n";}
-
- print eval '$foo = /'; # this tests for a call through fatal()
- if