Help for this page

Select Code to Download


  1. or download this
    sub write {
        @_ == 3 or croak 'Usage: $sftp->write($fh, $data)';
    ...
                or carp("Can only write bytes to a socket");
        }
        ...
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $from_off = encode($enc, $text);
    my $from_on  = encode($enc, $text);
    print("bytes are ", ($from_off eq $from_on ? 'same' : 'diff'), "\n");
    
  3. or download this
    bytes are same
    
  4. or download this
    use strict;
    use warnings;
    ...
    utf8::downgrade( my $from_off = $bytes_off );
    utf8::downgrade( my $from_on  = $bytes_on );
    print("bytes are ", ($from_off eq $from_on ? 'same' : 'diff'), "\n");
    
  5. or download this
    bytes are same