develooper Front page | perl.perl6.users | Postings from September 2017

Why can't I "write"?

Thread Next
From:
ToddAndMargo
Date:
September 23, 2017 06:09
Subject:
Why can't I "write"?
Message ID:
61be14f1-31b1-f1c4-ffeb-246849c8fbc7@zoho.com
Hi All,

https://docs.perl6.org/routine/write

       (IO::Handle) method write
       Defined as:
       method write(IO::Handle:D: Blob:D $buf --> True)

       Writes $buf to the filehandle. This method can be called
       even when the handle is not in binary mode.



This:
    48:   my $Handle = open( $DateFile, :rw )
    53:   write( $Handle, $OldDateTime );
    67:   write( $Handle, $DateTime );

gives me this:
    Undeclared routine: write used at lines 53, 67

Huh?  Seems to me I am follow the directions.  What am
I doing wrong?


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About