Hello, Can somebody tell me why this example does not work ?
Number found where operator expected at ./Test.pl line 12, near "case 0" (Do you need to predeclare case?) syntax error at ./Test.pl line 11, near ") {" Execution of ./Test.pl aborted due to compilation errors. +++++++++++++++++++++++++++++++++++++++++++++++++ #!/usr/bin/perl -w #use PGPLOT ; use Switch ; use strict ; my ($profile) ; my $step = 5 / 2 ; switch ($profile) { case 0 { } } # pgbegin (0, "/xserve",1,1) ; ++++++++++++++++++++++++++++++++++++++++++++++ -- --- ========================================================================== Patrick DUPRÉ | | Department of Chemistry | | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: patrick.du...@york.ac.uk ==========================================================================
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/