View Problem

Write a string to a file

DiskEdit
perl
open(my $fh, '>', $path) or die "can't open $path: $!";
print $fh "This line overwites file contents!";
close $fh;

Submit a new solution for perl
There are 18 other solutions in additional languages (clojure, cpp, csharp, erlang ...)