- or download this
open(FILE, '>', 'temp.txt')
or die("Can't create output file: $!");
...
my ($fh) = @_;
print $fh "Hello World\n";
}
- or download this
sub foo { print("Hello World\n"); }
*bar = \&foo;
bar();
- or download this
open(my $file, '>', 'temp.txt')
or die("Can't create output file: $!");
...
my ($fh) = @_;
print $fh "Hello World\n";
}