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

Why can't I "write"?

Thread Next
September 23, 2017 06:09
Why can't I "write"?
Message ID:
Hi All,

       (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.

    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,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About