Data-Table-Text
view release on metacpan or search on metacpan
", "bbb
", "ccc
"]; # ðð
ð®ðºð½ð¹ð²
unlink $a, $b;
}
### appendFile  ($file, $string)
Append to **$file** a **$string** of [Unicode](https://en.wikipedia.org/wiki/Unicode) content encoded with [utf8](https://en.wikipedia.org/wiki/UTF-8), creating the $file first if necessary. Return the name of the $file on success else confess. The $...
Parameter Description
1 $file File to append to
2 $string String to append
**Example:**
my $f = writeFile(undef, "aaa");
is_deeply [readFile $f], ["aaa"];
lib/Data/Table/Text.pm view on Meta::CPAN
else
{push @L, $l;
}
}
return @l unless $changed; # Return array of expanded lines if expansion is now complete
@l = @L;
}
confess "Expansion too deep";
} # includeFiles
sub appendFile($$) # Append to B<$file> a B<$string> of L<unicode> content encoded with L<utf8>, creating the $file first if necessary. Return the name of the $file on success else confess....
{my ($file, $string) = @_; # File to append to, string to append
$file or confess "No file name supplied\n";
$string or carp "No string for file:\n$file\n";
makePath($file);
open my $F, ">>$file" or
confess "Cannot open file for write file:\n$file\n$!\n";
binmode($F, ":utf8");
flock($F, 2);
print {$F} $string;
close ($F);
lib/Data/Table/Text.pm view on Meta::CPAN
", "bbb
", "ccc
"]; # ðð
ð®ðºð½ð¹ð²
unlink $a, $b;
}
=head3 appendFile  ($file, $string)
Append to B<$file> a B<$string> of L<Unicode|https://en.wikipedia.org/wiki/Unicode> content encoded with L<utf8|https://en.wikipedia.org/wiki/UTF-8>, creating the $file first if necessary. Return the name of the $file on success else confess. The $fi...
Parameter Description
1 $file File to append to
2 $string String to append
B<Example:>
my $f = writeFile(undef, "aaa");
is_deeply [readFile $f], ["aaa"];
( run in 0.939 second using v1.01-cache-2.11-cpan-49f99fa48dc )