Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    grep {
    ...
        last NUM if $_ > 3;
      }
    }  1 .. 10;
    
  2. or download this
    syntax error at ./test.pl line 4, near "NUM:"
    syntax error at ./test.pl line 8, near "}"
    Execution of ./test.pl aborted due to compilation errors.
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    grep {
    ...
        last NUM if $_ > 3;
      }
    }  1 .. 10;