Changeset 17704 for examples

Show
Ignore:
Timestamp:
09/06/07 19:57:50 (16 months ago)
Author:
moritz
Message:

updated a few examples to s/err/orelse/

Location:
examples
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • examples/mandel.pl

    r15297 r17704  
    11use v6-alpha; 
    22 
    3 # vim:ft=perl:sw=4: 
     3# vim:ft=perl:sw=4:syn=perl6 
    44# Print the Mandlebrot set 
    55# 
  • examples/network/echoserver.pl

    r15819 r17704  
    44 
    55my $port = @ARGS[0] // 1024; 
    6 my $sock = listen($port) or die "Could not open socket\n"; 
     6my $sock = listen($port) orelse die "Could not open socket\n"; 
    77say "$?FILE, ready"; 
    88say "port: $port"; 
    9 while(1) { 
     9loop { 
    1010        my $client = $sock.accept(); 
    1111        my $thr = async { 
     
    1313                $client.flush; 
    1414         
    15                 while(1) { 
     15                loop { 
    1616                        $client.print('echo>'); 
    1717                        $client.flush; 
  • examples/rules/unitsdat-grammar.pm

    r17701 r17704  
    732732        # NumUnit handles most of the traditional unit stuff via units.dat. 
    733733        my $unitsdat = open "/usr/share/misc/units.dat" 
    734             orelse die "You don't have a readable /usr/share/misc/units.dat: $!"; 
     734            orelse die "Can't read /usr/share/misc/units.dat: $!"; 
    735735        cat =$unitsdat ~~ /<UnitsDat>/; 
    736736        $unitsdat.close;