Help for this page

Select Code to Download


  1. or download this
    my $fh = open("test", :w);
    spurt $fh, "stuff\n";
    
  2. or download this
    my $wfh = open("in.txt", :w);
    spurt $wfh, "a\n";
    $wfh.close;
    
  3. or download this
    Type check failed in binding $path; expected Cool but got IO::Handle (
    +IO::Handle.new(:path(...)
      in block <unit> at nl.pl6 line 2