- Timestamp:
- 09/06/07 19:57:50 (16 months ago)
- Location:
- examples
- Files:
-
- 3 modified
-
mandel.pl (modified) (1 diff)
-
network/echoserver.pl (modified) (2 diffs)
-
rules/unitsdat-grammar.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
examples/mandel.pl
r15297 r17704 1 1 use v6-alpha; 2 2 3 # vim:ft=perl:sw=4: 3 # vim:ft=perl:sw=4:syn=perl6 4 4 # Print the Mandlebrot set 5 5 # -
examples/network/echoserver.pl
r15819 r17704 4 4 5 5 my $port = @ARGS[0] // 1024; 6 my $sock = listen($port) or die "Could not open socket\n";6 my $sock = listen($port) orelse die "Could not open socket\n"; 7 7 say "$?FILE, ready"; 8 8 say "port: $port"; 9 while(1){9 loop { 10 10 my $client = $sock.accept(); 11 11 my $thr = async { … … 13 13 $client.flush; 14 14 15 while(1){15 loop { 16 16 $client.print('echo>'); 17 17 $client.flush; -
examples/rules/unitsdat-grammar.pm
r17701 r17704 732 732 # NumUnit handles most of the traditional unit stuff via units.dat. 733 733 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: $!"; 735 735 cat =$unitsdat ~~ /<UnitsDat>/; 736 736 $unitsdat.close;
